文件操作 - class-404page-settings.php
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/lessi--it/wp-content/plugins/404page/inc/class-404page-settings.php
编辑文件内容
<?php /** * The 404page settings plugin class * * @since 7 * * taken from 404page core class and outsourced to a seperate class in version 7 */ if ( ! defined( 'WPINC' ) ) { die; } /** * The settings plugin class */ if ( !class_exists( 'PP_404Page_Settings' ) ) { class PP_404Page_Settings extends PPF07_Settings { /** * sanitize settings * * @since 11.0.0 * @access private */ private function sanitize_settings() { // Set page ID to -1 if the page does not exist or is not published if ( $this->get( 'page_id' ) != 0 ) { $page = get_post( $this->get( 'page_id' ) ); if ( !$page || $page->post_status != 'publish' ) { $this->set( 'page_id', -1 ); } } } /** * set the method * * @since 7 * @access public */ public function set_method() { if ( defined( 'ICL_SITEPRESS_VERSION' ) ) { // WPML is active $this->set('method', 'CMP' ); } else { // we dont' need to set this here, because this is set in load() } } } } ?>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件