Changeset 61445 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 01/06/2026 06:05:20 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r61111 r61445 168 168 $this->did_permalink = true; 169 169 170 $pathinfo = isset( $_SERVER['PATH_INFO'] ) ? $_SERVER['PATH_INFO'] :'';170 $pathinfo = $_SERVER['PATH_INFO'] ?? ''; 171 171 list( $pathinfo ) = explode( '?', $pathinfo ); 172 172 $pathinfo = str_replace( '%', '%25', $pathinfo ); … … 540 540 541 541 if ( is_singular() ) { 542 $post = isset( $wp_query->post ) ? $wp_query->post :null;542 $post = $wp_query->post ?? null; 543 543 544 544 // Only set X-Pingback for single posts that allow pings. … … 670 670 $GLOBALS['query_string'] = $this->query_string; 671 671 $GLOBALS['posts'] = & $wp_query->posts; 672 $GLOBALS['post'] = isset( $wp_query->post ) ? $wp_query->post :null;672 $GLOBALS['post'] = $wp_query->post ?? null; 673 673 $GLOBALS['request'] = $wp_query->request; 674 674 … … 756 756 757 757 if ( is_singular() ) { 758 $post = isset( $wp_query->post ) ? $wp_query->post :null;758 $post = $wp_query->post ?? null; 759 759 $next = '<!--nextpage-->'; 760 760
Note: See TracChangeset
for help on using the changeset viewer.