This repository was archived by the owner on Dec 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,6 @@ public function run_user_actions() {
370370
371371 if ( isset ( $ _GET [ $ this ->nobug_option ] ) ) { // User doesn't want to see this anymore.
372372 add_site_option ( $ this ->nobug_option , true );
373-
374373 return ; // No need to redirect.
375374 } elseif ( isset ( $ _GET [ $ this ->autoenable_option ] ) ) { // User has opted to just auto-enable Gutenberg.
376375 unset( $ _GET [ $ this ->autoenable_option ] );
@@ -424,7 +423,7 @@ private function check_for_filter() {
424423 private function remove_filter () {
425424 global $ pagenow ;
426425
427- if ( is_admin () && ! self :: $ is_disabled && ( 'post-new.php ' === $ pagenow || 'post.php ' === $ pagenow ) ) {
426+ if ( is_admin () && ( 'post-new.php ' === $ pagenow || 'post.php ' === $ pagenow ) ) {
428427 // We only want to do this for posts or pages.
429428 if ( ! isset ( $ _GET ['post_type ' ] ) || ( isset ( $ _GET ['post_type ' ] ) && 'page ' === $ _GET ['post_type ' ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
430429 if ( version_compare ( $ GLOBALS ['wp_version ' ], '5.0-beta ' , '> ' ) ) {
You can’t perform that action at this time.
0 commit comments