WP_Super_Cache_Rest_Get_Status::add_php_mod_rewrite_status()
Method of the class: WP_Super_Cache_Rest_Get_Status{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->add_php_mod_rewrite_status( $status );
- $status(array) (required) (passed by reference — &)
- -
WP_Super_Cache_Rest_Get_Status::add_php_mod_rewrite_status() WP Super Cache Rest Get Status::add php mod rewrite status code WPSCache 1.12.4
protected function add_php_mod_rewrite_status( & $status ) { global $wp_cache_config_file; include( $wp_cache_config_file ); if ( $cache_enabled && !$wp_cache_mod_rewrite ) { $scrules = trim( implode( "\n", extract_from_markers( trailingslashit( get_home_path() ) . '.htaccess', 'WPSuperCache' ) ) ); if ( $scrules != '' ) { $status[ 'php_mod_rewrite' ] = true; } } }