mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Add @static* annotations where they are missing.
Initialize all static vars that are not, most to `null`. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2170,7 +2170,7 @@ class WP_Rewrite {
|
||||
* @param bool $hard Whether to update .htaccess (hard flush) or just update rewrite_rules option (soft flush). Default is true (hard).
|
||||
*/
|
||||
public function flush_rules( $hard = true ) {
|
||||
static $do_hard_later;
|
||||
static $do_hard_later = null;
|
||||
|
||||
// Prevent this action from running before everyone has registered their rewrites
|
||||
if ( ! did_action( 'wp_loaded' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user