Changeset 61454 for trunk/src/wp-includes/author-template.php
- Timestamp:
- 01/09/2026 02:38:07 AM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/author-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r61057 r61454 170 170 if ( ! $user_id ) { 171 171 global $authordata; 172 $user_id = isset( $authordata->ID ) ? $authordata->ID :0;172 $user_id = $authordata->ID ?? 0; 173 173 } else { 174 174 $authordata = get_userdata( $user_id ); … … 179 179 } 180 180 181 $value = isset( $authordata->$field ) ? $authordata->$field :'';181 $value = $authordata->$field ?? ''; 182 182 183 183 /** … … 503 503 504 504 foreach ( $authors as $author_id ) { 505 $posts = isset( $post_counts[ $author_id ] ) ? $post_counts[ $author_id ] :0;505 $posts = $post_counts[ $author_id ] ?? 0; 506 506 507 507 if ( ! $posts && $parsed_args['hide_empty'] ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)