Changeset 61431 for trunk/src/wp-includes/block-template.php
- Timestamp:
- 01/05/2026 05:22:14 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template.php
r61178 r61431 374 374 375 375 // Pages. 376 $page_id = isset( $wp_query->query['page_id'] ) ? $wp_query->query['page_id'] :null;376 $page_id = $wp_query->query['page_id'] ?? null; 377 377 378 378 // Posts, including custom post types. 379 $p = isset( $wp_query->query['p'] ) ? $wp_query->query['p'] :null;379 $p = $wp_query->query['p'] ?? null; 380 380 381 381 $post_id = $page_id ? $page_id : $p;
Note: See TracChangeset
for help on using the changeset viewer.