Ticket #41224: 41224.patch
File 41224.patch, 962 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/class-wp.php
270 270 } 271 271 272 272 // If req_uri is empty or if it is a request for ourself, unset error. 273 if ( empty( $requested_path) || $requested_file == $self || strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) {273 if ( empty( $requested_path ) || $requested_file == $self || strpos( $_SERVER['PHP_SELF'], 'wp-admin/' ) !== false ) { 274 274 unset( $error, $_GET['error'] ); 275 275 276 if ( isset($perma_query_vars) && strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false ) 276 // If isset perma_query_vars and found url "wp-admin/" from the administrative interface page. 277 if ( isset( $perma_query_vars ) && strpos( $_SERVER['PHP_SELF'], 'wp-admin/' ) !== false && is_admin() ) 277 278 unset( $perma_query_vars ); 278 279 279 280 $this->did_permalink = false;