Changeset 61434
- Timestamp:
- 01/05/2026 05:51:15 AM (4 weeks ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
-
wp-admin/edit-comments.php (modified) (2 diffs)
-
wp-admin/includes/class-wp-comments-list-table.php (modified) (3 diffs)
-
wp-includes/comment.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r60235 r61434 338 338 339 339 if ( $spammed > 0 ) { 340 $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] :0;340 $ids = $_REQUEST['ids'] ?? 0; 341 341 342 342 $messages[] = sprintf( … … 360 360 361 361 if ( $trashed > 0 ) { 362 $ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] :0;362 $ids = $_REQUEST['ids'] ?? 0; 363 363 364 364 $messages[] = sprintf( -
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r61183 r61434 50 50 'singular' => 'comment', 51 51 'ajax' => true, 52 'screen' => isset( $args['screen'] ) ? $args['screen'] :null,52 'screen' => $args['screen'] ?? null, 53 53 ) 54 54 ); … … 94 94 } 95 95 96 $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] :'all';96 $comment_status = $_REQUEST['comment_status'] ?? 'all'; 97 97 98 98 if ( ! in_array( $comment_status, array( 'all', 'mine', 'moderated', 'approved', 'spam', 'trash' ), true ) ) { … … 145 145 146 146 $args = array( 147 'status' => isset( $status_map[ $comment_status ] ) ? $status_map[ $comment_status ] :$comment_status,147 'status' => $status_map[ $comment_status ] ?? $comment_status, 148 148 'search' => $search, 149 149 'user_id' => $user_id, -
trunk/src/wp-includes/comment.php
r61387 r61434 2216 2216 * @param string $comment_agent The comment author's browser user agent. 2217 2217 */ 2218 $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] :'' ) );2218 $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( $commentdata['comment_agent'] ?? '' ) ); 2219 2219 /** This filter is documented in wp-includes/comment.php */ 2220 2220 $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] ); … … 2334 2334 2335 2335 if ( ! isset( $commentdata['comment_agent'] ) ) { 2336 $commentdata['comment_agent'] = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] :'';2336 $commentdata['comment_agent'] = $_SERVER['HTTP_USER_AGENT'] ?? ''; 2337 2337 } 2338 2338 … … 2633 2633 $filter_comment = false; 2634 2634 if ( ! has_filter( 'pre_comment_content', 'wp_filter_kses' ) ) { 2635 $filter_comment = ! user_can( isset( $comment['user_id'] ) ? $comment['user_id'] :0, 'unfiltered_html' );2635 $filter_comment = ! user_can( $comment['user_id'] ?? 0, 'unfiltered_html' ); 2636 2636 } 2637 2637
Note: See TracChangeset
for help on using the changeset viewer.