Changeset 47550 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r47169 r47550 43 43 global $wp_rewrite, $is_IIS, $wp_query, $wpdb, $wp; 44 44 45 if ( isset( $_SERVER['REQUEST_METHOD'] ) && ! in_array( strtoupper( $_SERVER['REQUEST_METHOD'] ), array( 'GET', 'HEAD' ) ) ) {45 if ( isset( $_SERVER['REQUEST_METHOD'] ) && ! in_array( strtoupper( $_SERVER['REQUEST_METHOD'] ), array( 'GET', 'HEAD' ), true ) ) { 46 46 return; 47 47 } … … 332 332 333 333 $addl_path = ''; 334 if ( is_feed() && in_array( get_query_var( 'feed' ), $wp_rewrite->feeds ) ) {334 if ( is_feed() && in_array( get_query_var( 'feed' ), $wp_rewrite->feeds, true ) ) { 335 335 $addl_path = ! empty( $addl_path ) ? trailingslashit( $addl_path ) : ''; 336 336 if ( ! is_singular() && get_query_var( 'withcomments' ) ) { … … 752 752 site_url( 'admin', 'relative' ), 753 753 ); 754 if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $admins ) ) {754 if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $admins, true ) ) { 755 755 wp_redirect( admin_url() ); 756 756 exit; … … 762 762 site_url( 'login', 'relative' ), 763 763 ); 764 if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins ) ) {764 if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins, true ) ) { 765 765 wp_redirect( wp_login_url() ); 766 766 exit;
Note: See TracChangeset
for help on using the changeset viewer.