Changeset 61445 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 01/06/2026 06:05:20 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r61269 r61445 119 119 $post = get_post( $post ); 120 120 121 $post_title = isset( $post->post_title ) ? $post->post_title :'';122 $post_id = isset( $post->ID ) ? $post->ID :0;121 $post_title = $post->post_title ?? ''; 122 $post_id = $post->ID ?? 0; 123 123 124 124 if ( ! is_admin() ) { … … 192 192 193 193 $post_guid = isset( $post->guid ) ? get_the_guid( $post ) : ''; 194 $post_id = isset( $post->ID ) ? $post->ID :0;194 $post_id = $post->ID ?? 0; 195 195 196 196 /** … … 222 222 $post = get_post( $post ); 223 223 224 $post_guid = isset( $post->guid ) ? $post->guid :'';225 $post_id = isset( $post->ID ) ? $post->ID :0;224 $post_guid = $post->guid ?? ''; 225 $post_id = $post->ID ?? 0; 226 226 227 227 /**
Note: See TracChangeset
for help on using the changeset viewer.