Changeset 61444
- Timestamp:
- 01/06/2026 05:55:33 AM (2 months ago)
- Location:
- trunk/src
- Files:
-
- 19 edited
-
wp-admin/includes/class-wp-debug-data.php (modified) (1 diff)
-
wp-admin/includes/class-wp-ms-sites-list-table.php (modified) (2 diffs)
-
wp-admin/includes/class-wp-ms-themes-list-table.php (modified) (2 diffs)
-
wp-admin/includes/class-wp-ms-users-list-table.php (modified) (1 diff)
-
wp-admin/includes/class-wp-site-health.php (modified) (3 diffs)
-
wp-admin/includes/class-wp-users-list-table.php (modified) (2 diffs)
-
wp-admin/includes/user.php (modified) (1 diff)
-
wp-admin/my-sites.php (modified) (1 diff)
-
wp-admin/network/site-themes.php (modified) (1 diff)
-
wp-admin/network/themes.php (modified) (1 diff)
-
wp-admin/network/upgrade.php (modified) (1 diff)
-
wp-admin/site-health.php (modified) (1 diff)
-
wp-admin/users.php (modified) (1 diff)
-
wp-includes/capabilities.php (modified) (1 diff)
-
wp-includes/pomo/po.php (modified) (1 diff)
-
wp-includes/pomo/translations.php (modified) (2 diffs)
-
wp-includes/rewrite.php (modified) (1 diff)
-
wp-includes/user.php (modified) (1 diff)
-
wp-signup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r61359 r61444 374 374 $fields['httpd_software'] = array( 375 375 'label' => __( 'Web server' ), 376 'value' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : __( 'Unable to determine what web server software is used' )),377 'debug' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : 'unknown' ),376 'value' => $_SERVER['SERVER_SOFTWARE'] ?? __( 'Unable to determine what web server software is used' ), 377 'debug' => $_SERVER['SERVER_SOFTWARE'] ?? 'unknown', 378 378 ); 379 379 $fields['php_version'] = array( -
trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php
r61371 r61444 45 45 array( 46 46 'plural' => 'sites', 47 'screen' => isset( $args['screen'] ) ? $args['screen'] :null,47 'screen' => $args['screen'] ?? null, 48 48 ) 49 49 ); … … 136 136 } 137 137 138 $order_by = isset( $_REQUEST['orderby'] ) ? $_REQUEST['orderby'] :'';138 $order_by = $_REQUEST['orderby'] ?? ''; 139 139 if ( 'registered' === $order_by ) { 140 140 // 'registered' is a valid field name. -
trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php
r59960 r61444 49 49 array( 50 50 'plural' => 'themes', 51 'screen' => isset( $args['screen'] ) ? $args['screen'] :null,51 'screen' => $args['screen'] ?? null, 52 52 ) 53 53 ); 54 54 55 $status = isset( $_REQUEST['theme_status'] ) ? $_REQUEST['theme_status'] :'all';55 $status = $_REQUEST['theme_status'] ?? 'all'; 56 56 if ( ! in_array( $status, array( 'all', 'enabled', 'disabled', 'upgrade', 'search', 'broken', 'auto-update-enabled', 'auto-update-disabled' ), true ) ) { 57 57 $status = 'all'; … … 154 154 155 155 $theme_data = array( 156 'update_supported' => isset( $theme->update_supported ) ? $theme->update_supported :true,156 'update_supported' => $theme->update_supported ?? true, 157 157 ); 158 158 -
trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php
r59878 r61444 42 42 $users_per_page = $this->get_items_per_page( 'users_network_per_page' ); 43 43 44 $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] :'';44 $role = $_REQUEST['role'] ?? ''; 45 45 46 46 $paged = $this->get_pagenum(); -
trunk/src/wp-admin/includes/class-wp-site-health.php
r61355 r61444 151 151 $health_check_js_variables['site_status']['async'][] = array( 152 152 'test' => $test['test'], 153 'has_rest' => ( isset( $test['has_rest'] ) ? $test['has_rest'] : false ),153 'has_rest' => $test['has_rest'] ?? false, 154 154 'completed' => false, 155 'headers' => isset( $test['headers'] ) ? $test['headers'] :array(),155 'headers' => $test['headers'] ?? array(), 156 156 ); 157 157 } … … 1053 1053 1054 1054 foreach ( $modules as $library => $module ) { 1055 $extension_name = ( isset( $module['extension'] ) ? $module['extension'] : null );1056 $function_name = ( isset( $module['function'] ) ? $module['function'] : null );1057 $constant_name = ( isset( $module['constant'] ) ? $module['constant'] : null );1058 $class_name = ( isset( $module['class'] ) ? $module['class'] : null );1055 $extension_name = $module['extension'] ?? null; 1056 $function_name = $module['function'] ?? null; 1057 $constant_name = $module['constant'] ?? null; 1058 $class_name = $module['class'] ?? null; 1059 1059 1060 1060 // If this module is a fallback for another function, check if that other function passed. … … 3024 3024 'args' => $data['args'], 3025 3025 'schedule' => $data['schedule'], 3026 'interval' => isset( $data['interval'] ) ? $data['interval'] :null,3026 'interval' => $data['interval'] ?? null, 3027 3027 ); 3028 3028 -
trunk/src/wp-admin/includes/class-wp-users-list-table.php
r57263 r61444 47 47 'singular' => 'user', 48 48 'plural' => 'users', 49 'screen' => isset( $args['screen'] ) ? $args['screen'] :null,49 'screen' => $args['screen'] ?? null, 50 50 ) 51 51 ); … … 86 86 $usersearch = isset( $_REQUEST['s'] ) ? wp_unslash( trim( $_REQUEST['s'] ) ) : ''; 87 87 88 $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] :'';88 $role = $_REQUEST['role'] ?? ''; 89 89 90 90 $per_page = ( $this->is_site_users ) ? 'site_users_network_per_page' : 'users_per_page'; -
trunk/src/wp-admin/includes/user.php
r61270 r61444 63 63 } 64 64 65 $potential_role = isset( $wp_roles->role_objects[ $new_role ] ) ? $wp_roles->role_objects[ $new_role ] :false;65 $potential_role = $wp_roles->role_objects[ $new_role ] ?? false; 66 66 67 67 /* -
trunk/src/wp-admin/my-sites.php
r56515 r61444 18 18 } 19 19 20 $action = isset( $_POST['action'] ) ? $_POST['action'] :'splash';20 $action = $_POST['action'] ?? 'splash'; 21 21 22 22 $blogs = get_blogs_of_user( $current_user->ID ); -
trunk/src/wp-admin/network/site-themes.php
r58975 r61444 30 30 $action = $wp_list_table->current_action(); 31 31 32 $s = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] :'';32 $s = $_REQUEST['s'] ?? ''; 33 33 34 34 // Clean up request URI from temporary args for screen options/paging uri's to work as expected. -
trunk/src/wp-admin/network/themes.php
r59784 r61444 20 20 $action = $wp_list_table->current_action(); 21 21 22 $s = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] :'';22 $s = $_REQUEST['s'] ?? ''; 23 23 24 24 // Clean up request URI from temporary args for screen options/paging uri's to work as expected. -
trunk/src/wp-admin/network/upgrade.php
r61440 r61444 48 48 echo '<h1>' . __( 'Upgrade Network' ) . '</h1>'; 49 49 50 $action = isset( $_GET['action'] ) ? $_GET['action'] :'show';50 $action = $_GET['action'] ?? 'show'; 51 51 52 52 switch ( $action ) { -
trunk/src/wp-admin/site-health.php
r60609 r61444 37 37 ); 38 38 39 $current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : '' );39 $current_tab = $_GET['tab'] ?? ''; 40 40 41 41 $title = sprintf( -
trunk/src/wp-admin/users.php
r60976 r61444 630 630 case 'add': 631 631 $message = __( 'New user created.' ); 632 $user_id = isset( $_GET['id'] ) ? $_GET['id'] :false;632 $user_id = $_GET['id'] ?? false; 633 633 if ( $user_id && current_user_can( 'edit_user', $user_id ) ) { 634 634 $message .= sprintf( -
trunk/src/wp-includes/capabilities.php
r61354 r61444 472 472 $caps = map_meta_cap( "edit_{$object_type}", $user_id, $object_id ); 473 473 474 $meta_key = isset( $args[1] ) ? $args[1] :false;474 $meta_key = $args[1] ?? false; 475 475 476 476 if ( $meta_key ) { -
trunk/src/wp-includes/pomo/po.php
r57356 r61444 167 167 } else { 168 168 $previous_is_backslash = false; 169 $unpoified .= isset( $escapes[ $char ] ) ? $escapes[ $char ] :$char;169 $unpoified .= $escapes[ $char ] ?? $char; 170 170 } 171 171 } -
trunk/src/wp-includes/pomo/translations.php
r57734 r61444 120 120 */ 121 121 public function get_header( $header ) { 122 return isset( $this->headers[ $header ] ) ? $this->headers[ $header ] :false;122 return $this->headers[ $header ] ?? false; 123 123 } 124 124 … … 133 133 public function translate_entry( &$entry ) { 134 134 $key = $entry->key(); 135 return isset( $this->entries[ $key ] ) ? $this->entries[ $key ] :false;135 return $this->entries[ $key ] ?? false; 136 136 } 137 137 -
trunk/src/wp-includes/rewrite.php
r60447 r61444 578 578 // Chop off /path/to/blog. 579 579 $home_path = parse_url( home_url( '/' ) ); 580 $home_path = isset( $home_path['path'] ) ? $home_path['path'] :'';580 $home_path = $home_path['path'] ?? ''; 581 581 $url = preg_replace( sprintf( '#^%s#', preg_quote( $home_path ) ), '', trailingslashit( $url ) ); 582 582 } -
trunk/src/wp-includes/user.php
r61387 r61444 2465 2465 $meta['show_admin_bar_front'] = empty( $userdata['show_admin_bar_front'] ) ? 'true' : $userdata['show_admin_bar_front']; 2466 2466 2467 $meta['locale'] = isset( $userdata['locale'] ) ? $userdata['locale'] :'';2467 $meta['locale'] = $userdata['locale'] ?? ''; 2468 2468 2469 2469 $compacted = compact( 'user_pass', 'user_nicename', 'user_email', 'user_url', 'user_registered', 'user_activation_key', 'display_name' ); -
trunk/src/wp-signup.php
r61411 r61444 977 977 printf( __( 'You must first <a href="%s">log in</a>, and then you can create a new site.' ), $login_url ); 978 978 } else { 979 $stage = isset( $_POST['stage'] ) ? $_POST['stage'] :'default';979 $stage = $_POST['stage'] ?? 'default'; 980 980 switch ( $stage ) { 981 981 case 'validate-user-signup': … … 1001 1001 case 'default': 1002 1002 default: 1003 $user_email = isset( $_POST['user_email'] ) ? $_POST['user_email'] :'';1003 $user_email = $_POST['user_email'] ?? ''; 1004 1004 /** 1005 1005 * Fires when the site sign-up form is sent.
Note: See TracChangeset
for help on using the changeset viewer.