WP_Super_Cache_Rest_Get_Status::add_rewrite_status()
Method of the class: WP_Super_Cache_Rest_Get_Status{}
Hooks from the method
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->add_rewrite_status( $status );
- $status(array) (required) (passed by reference — &)
- -
WP_Super_Cache_Rest_Get_Status::add_rewrite_status() WP Super Cache Rest Get Status::add rewrite status code WPSCache 1.12.4
protected function add_rewrite_status( & $status ) { global $home_path, $wp_cache_config_file; include( $wp_cache_config_file ); // Return if the rewrite caching is disabled. if ( ! $cache_enabled || ! $super_cache_enabled || ! $wp_cache_mod_rewrite ) { return; } $scrules = implode( "\n", extract_from_markers( $home_path . '.htaccess', 'WPSuperCache' ) ); extract( wpsc_get_htaccess_info() ); if ( $scrules != $rules ) { $status[ 'mod_rewrite_rules' ] = true; } $got_rewrite = apache_mod_loaded( 'mod_rewrite', true ); if ( $wp_cache_mod_rewrite && false == apply_filters( 'got_rewrite', $got_rewrite ) ) { $status[ 'mod_rewrite_missing' ] = true; } if ( !is_writeable_ACLSafe( $home_path . ".htaccess" ) ) { $status[ 'htaccess_ro' ] = true; } }