Changeset 61594
- Timestamp:
- 02/07/2026 06:05:09 AM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 10 edited
-
wp-admin/includes/class-wp-debug-data.php (modified) (14 diffs)
-
wp-admin/includes/class-wp-list-table.php (modified) (9 diffs)
-
wp-admin/includes/class-wp-media-list-table.php (modified) (7 diffs)
-
wp-admin/includes/class-wp-screen.php (modified) (1 diff)
-
wp-admin/includes/class-wp-theme-install-list-table.php (modified) (2 diffs)
-
wp-admin/includes/media.php (modified) (10 diffs)
-
wp-admin/includes/misc.php (modified) (3 diffs)
-
wp-admin/includes/update.php (modified) (11 diffs)
-
wp-includes/class-wp-http-ixr-client.php (modified) (1 diff)
-
wp-includes/vars.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-debug-data.php
r61577 r61594 143 143 * @since 6.7.0 144 144 * 145 * @return array 145 * @return array<string, string|array> The debug data for the Info screen. 146 146 */ 147 147 private static function get_wp_core(): array { … … 306 306 * @since 6.7.0 307 307 * 308 * @return array 308 * @return array<string, string|bool|array> The drop-ins debug data. 309 309 */ 310 310 private static function get_wp_dropins(): array { … … 341 341 * @since 6.7.0 342 342 * 343 * @return array 343 * @return array<string, string|array> The server-related debug data. 344 344 */ 345 345 private static function get_wp_server(): array { … … 562 562 * 563 563 * @throws ImagickException 564 * @return array 564 * @return array<string, string|array> The media handling debug data. 565 565 */ 566 566 private static function get_wp_media(): array { … … 774 774 * @since 6.7.0 775 775 * 776 * @return array 776 * @return array<string, string|bool|array> The must-use plugins debug data. 777 777 */ 778 778 private static function get_wp_mu_plugins(): array { … … 905 905 * @since 6.7.0 906 906 * 907 * @return array 907 * @return array<string, string|bool|array> The active plugins debug data. 908 908 */ 909 909 private static function get_wp_plugins_active(): array { … … 920 920 * @since 6.7.0 921 921 * 922 * @return array 922 * @return array<string, string|bool|array> The inactive plugins debug data. 923 923 */ 924 924 private static function get_wp_plugins_inactive(): array { … … 935 935 * @since 6.7.0 936 936 * 937 * @return array 937 * @return array<string, array<string, array<string, string>>> The raw plugin debug data for active and inactive plugins. 938 938 */ 939 939 private static function get_wp_plugins_raw_data(): array { … … 1058 1058 * @global array $_wp_theme_features 1059 1059 * 1060 * @return array 1060 * @return array<string, string|array> The active theme debug data. 1061 1061 */ 1062 1062 private static function get_wp_active_theme(): array { … … 1202 1202 * @since 6.7.0 1203 1203 * 1204 * @return array 1204 * @return array<string, string|array> The parent theme debug data. 1205 1205 */ 1206 1206 private static function get_wp_parent_theme(): array { … … 1314 1314 * @since 6.7.0 1315 1315 * 1316 * @return array 1316 * @return array<string, string|bool|array> The inactive themes debug data. 1317 1317 */ 1318 1318 private static function get_wp_themes_inactive(): array { … … 1445 1445 * @since 6.7.0 1446 1446 * 1447 * @return array 1447 * @return array<string, string|array> The WordPress constants debug data. 1448 1448 */ 1449 1449 private static function get_wp_constants(): array { … … 1614 1614 * @global wpdb $wpdb WordPress database abstraction object. 1615 1615 * 1616 * @return array 1616 * @return array<string, string|array> The database debug data. 1617 1617 */ 1618 1618 private static function get_wp_database(): array { … … 1696 1696 * @since 6.7.0 1697 1697 * 1698 * @return array 1698 * @return array<string, string|array> The debug data and other information for the Info screen. 1699 1699 */ 1700 1700 private static function get_wp_filesystem(): array { -
trunk/src/wp-admin/includes/class-wp-list-table.php
r61524 r61594 353 353 * @since 3.1.0 354 354 * 355 * @return bool 355 * @return bool Whether the table has items to display. 356 356 */ 357 357 public function has_items() { … … 491 491 * @since 3.1.0 492 492 * 493 * @return array 493 * @return array<string, string> An associative array of views. 494 494 */ 495 495 protected function get_views() { … … 555 555 * @since 5.6.0 A bulk action can now contain an array of options in order to create an optgroup. 556 556 * 557 * @return array 557 * @return array<string, string|array<string, string>> An associative array of bulk actions. 558 558 */ 559 559 protected function get_bulk_actions() { … … 955 955 * @since 3.1.0 956 956 * 957 * @return int 957 * @return int Current page number. 958 958 */ 959 959 public function get_pagenum() { … … 974 974 * @param string $option User option name. 975 975 * @param int $default_value Optional. The number of items to display. Default 20. 976 * @return int 976 * @return int Number of items to display per page. 977 977 */ 978 978 protected function get_items_per_page( $option, $default_value = 20 ) { … … 1180 1180 * @abstract 1181 1181 * 1182 * @return array 1182 * @return array<string, string> An associative array of columns. 1183 1183 */ 1184 1184 public function get_columns() { … … 1203 1203 * @since 6.3.0 Added 'abbr', 'orderby-text' and 'initially-sorted-column-order'. 1204 1204 * 1205 * @return array 1205 * @return array<string, array<int, string|bool>|string> An associative array of sortable columns. 1206 1206 */ 1207 1207 protected function get_sortable_columns() { … … 1294 1294 * @since 3.1.0 1295 1295 * 1296 * @return array 1296 * @return array<int, array|string> Column information. 1297 1297 */ 1298 1298 protected function get_column_info() { … … 1377 1377 * @since 3.1.0 1378 1378 * 1379 * @return int 1379 * @return int The number of visible columns. 1380 1380 */ 1381 1381 public function get_column_count() { -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r61453 r61594 54 54 55 55 /** 56 * @return bool 56 * @return bool Whether the user can upload files. 57 57 */ 58 58 public function ajax_user_can() { … … 120 120 * @global array $post_mime_types 121 121 * @global array $avail_post_mime_types 122 * @return array 122 * @return array<string, string> An array of links for the available views. 123 123 */ 124 124 protected function get_views() { … … 175 175 176 176 /** 177 * @return array 177 * @return array<string, string> An associative array of bulk actions. 178 178 */ 179 179 protected function get_bulk_actions() { … … 228 228 229 229 /** 230 * @return string 230 * @return string|false The current action. 231 231 */ 232 232 public function current_action() { … … 247 247 248 248 /** 249 * @return bool 249 * @return bool Whether the list table has items to display. 250 250 */ 251 251 public function has_items() { … … 394 394 395 395 /** 396 * @return array 396 * @return array<string, array<int, mixed>> An array of sortable columns. 397 397 */ 398 398 protected function get_sortable_columns() { … … 765 765 * @param WP_Post $post 766 766 * @param string $att_title 767 * @return array 767 * @return array<string, string> An array of row actions. 768 768 */ 769 769 private function _get_row_actions( $post, $att_title ) { -
trunk/src/wp-admin/includes/class-wp-screen.php
r61470 r61594 989 989 * @global array $wp_meta_boxes Global meta box state. 990 990 * 991 * @return bool 991 * @return bool Whether to show the Screen Options tab for the current screen. 992 992 */ 993 993 public function show_screen_options() { -
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r59675 r61594 20 20 21 21 /** 22 * @return bool 22 * @return bool Whether the user can install themes. 23 23 */ 24 24 public function ajax_user_can() { … … 180 180 * @global array $tabs 181 181 * @global string $tab 182 * @return array 182 * @return array<string, string> An array of links for the available views. 183 183 */ 184 184 protected function get_views() { -
trunk/src/wp-admin/includes/media.php
r61532 r61594 869 869 * @since 2.5.0 870 870 * 871 * @return null|string 871 * @return null|string The form handler result or null. 872 872 */ 873 873 function wp_media_upload_handler() { … … 1097 1097 * @since 2.5.0 1098 1098 * 1099 * @return string|null 1099 * @return string|null The form handler result or null. 1100 1100 */ 1101 1101 function media_upload_gallery() { … … 1123 1123 * @since 2.5.0 1124 1124 * 1125 * @return string|null 1125 * @return string|null The form handler result or null. 1126 1126 */ 1127 1127 function media_upload_library() { … … 1149 1149 * @param WP_Post $post 1150 1150 * @param string $checked 1151 * @return string 1151 * @return string HTML for the image alignment radio buttons. 1152 1152 */ 1153 1153 function image_align_input_fields( $post, $checked = '' ) { … … 1187 1187 * @param WP_Post $post 1188 1188 * @param bool|string $check 1189 * @return array 1189 * @return array<string, string> An array of data for the image size input fields. 1190 1190 */ 1191 1191 function image_size_input_fields( $post, $check = '' ) { … … 1265 1265 * @param WP_Post $post 1266 1266 * @param string $url_type 1267 * @return string 1267 * @return string HTML markup for the link URL buttons. 1268 1268 */ 1269 1269 function image_link_input_fields( $post, $url_type = '' ) { … … 1314 1314 * @param array $form_fields 1315 1315 * @param object $post 1316 * @return array 1316 * @return array<string, array<string, mixed>> The attachment form fields. 1317 1317 */ 1318 1318 function image_attachment_fields_to_edit( $form_fields, $post ) { … … 1356 1356 * @param int $attachment_id 1357 1357 * @param array $attachment 1358 * @return string 1358 * @return string HTML markup for the media element. 1359 1359 */ 1360 1360 function image_media_send_to_editor( $html, $attachment_id, $attachment ) { … … 1381 1381 * @param WP_Post $post 1382 1382 * @param array $errors 1383 * @return array 1383 * @return array<string, array<string, mixed>> The attachment fields. 1384 1384 */ 1385 1385 function get_attachment_fields_to_edit( $post, $errors = null ) { … … 1866 1866 1867 1867 /** 1868 * Retrieves the media markup for an attachment. 1869 * 1868 1870 * @since 3.5.0 1869 1871 * 1870 1872 * @param int $attachment_id 1871 1873 * @param array $args 1872 * @return array 1874 * @return array<string, string> An array containing the media item and its metadata. 1873 1875 */ 1874 1876 function get_compat_media_markup( $attachment_id, $args = null ) { -
trunk/src/wp-admin/includes/misc.php
r61591 r61594 820 820 * 821 821 * @param string $filename The file path to the configuration file. 822 * @return bool 822 * @return bool Whether the rule exists. 823 823 */ 824 824 function iis7_rewrite_rule_exists( $filename ) { … … 853 853 * 854 854 * @param string $filename Name of the configuration file. 855 * @return bool 855 * @return bool Whether the rule was deleted. 856 856 */ 857 857 function iis7_delete_rewrite_rule( $filename ) { … … 893 893 * @param string $filename The file path to the configuration file. 894 894 * @param string $rewrite_rule The XML fragment with URL Rewrite rule. 895 * @return bool 895 * @return bool Whether the rule was added. 896 896 */ 897 897 function iis7_add_rewrite_rule( $filename, $rewrite_rule ) { -
trunk/src/wp-admin/includes/update.php
r61455 r61594 35 35 * @param array $options Set $options['dismissed'] to true to show dismissed upgrades too, 36 36 * set $options['available'] to false to skip not-dismissed updates. 37 * @return array |false Array of the update objects on success, false on failure.37 * @return array<object>|false Array of the update objects on success, false on failure. 38 38 */ 39 39 function get_core_updates( $options = array() ) { … … 127 127 * @param string $version Version string to query. 128 128 * @param string $locale Locale to query. 129 * @return array |false An array of checksums on success, false on failure.129 * @return array<string, string>|false An array of checksums on success, false on failure. 130 130 */ 131 131 function get_core_checksums( $version, $locale ) { … … 179 179 * 180 180 * @param object $update 181 * @return bool 181 * @return bool True if the option was updated, false otherwise. 182 182 */ 183 183 function dismiss_core_update( $update ) { … … 195 195 * @param string $version 196 196 * @param string $locale 197 * @return bool 197 * @return bool True if the option was updated, false otherwise. 198 198 */ 199 199 function undismiss_core_update( $version, $locale ) { … … 243 243 * 244 244 * @param string $msg 245 * @return string 245 * @return string The core update footer message. 246 246 */ 247 247 function core_update_footer( $msg = '' ) { … … 298 298 * 299 299 * @global string $pagenow The filename of the current screen. 300 * @return void|false 300 * @return void|false Void on success, false if the update nag should not be displayed. 301 301 */ 302 302 function update_nag() { … … 402 402 * @since 2.9.0 403 403 * 404 * @return object[]404 * @return array<string, object> Array of plugin objects with available updates. 405 405 */ 406 406 function get_plugin_updates() { … … 447 447 * @param string $file Plugin basename. 448 448 * @param array $plugin_data Plugin information. 449 * @return void|false 449 * @return void|false Void on success, false if the plugin update is not available. 450 450 */ 451 451 function wp_plugin_update_row( $file, $plugin_data ) { … … 625 625 * @since 2.9.0 626 626 * 627 * @return WP_Theme[]627 * @return array<string, WP_Theme> Array of theme objects with available updates. 628 628 */ 629 629 function get_theme_updates() { … … 672 672 * @param string $theme_key Theme stylesheet. 673 673 * @param WP_Theme $theme Theme object. 674 * @return void|false 674 * @return void|false Void on success, false if the theme update is not available. 675 675 */ 676 676 function wp_theme_update_row( $theme_key, $theme ) { … … 849 849 * @global int $upgrading 850 850 * 851 * @return void|false 851 * @return void|false Void on success, false if the maintenance nag should not be displayed. 852 852 */ 853 853 function maintenance_nag() { -
trunk/src/wp-includes/class-wp-http-ixr-client.php
r61435 r61594 52 52 * to the function signature. 53 53 * 54 * @return bool 54 * @return bool True if the request succeeded, false otherwise. 55 55 */ 56 56 public function query( ...$args ) { -
trunk/src/wp-includes/vars.php
r59688 r61594 159 159 * @since 6.4.0 Added checking for the Sec-CH-UA-Mobile request header. 160 160 * 161 * @return bool 161 * @return bool Whether the request is from a mobile device. 162 162 */ 163 163 function wp_is_mobile() {
Note: See TracChangeset
for help on using the changeset viewer.