Changeset 62704
- Timestamp:
- 07/13/2026 07:14:54 AM (15 hours ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
-
wp-admin/includes/class-custom-background.php (modified) (2 diffs)
-
wp-admin/includes/class-custom-image-header.php (modified) (3 diffs)
-
wp-admin/includes/class-wp-importer.php (modified) (1 diff)
-
wp-admin/includes/class-wp-list-table.php (modified) (1 diff)
-
wp-admin/includes/comment.php (modified) (1 diff)
-
wp-admin/includes/post.php (modified) (1 diff)
-
wp-admin/includes/theme-install.php (modified) (1 diff)
-
wp-includes/canonical.php (modified) (1 diff)
-
wp-includes/class-wp-ajax-response.php (modified) (1 diff)
-
wp-includes/class-wp-customize-manager.php (modified) (6 diffs)
-
wp-includes/class-wp-customize-nav-menus.php (modified) (3 diffs)
-
wp-includes/class-wp-customize-widgets.php (modified) (1 diff)
-
wp-includes/class-wp-plugin-dependencies.php (modified) (1 diff)
-
wp-includes/functions.php (modified) (12 diffs)
-
wp-includes/ms-deprecated.php (modified) (2 diffs)
-
wp-includes/ms-load.php (modified) (1 diff)
-
wp-includes/option.php (modified) (1 diff)
-
wp-includes/pluggable.php (modified) (2 diffs)
-
wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php (modified) (1 diff)
-
wp-trackback.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-background.php
r62353 r62704 570 570 * 571 571 * @since 4.1.0 572 * 573 * @return never 572 574 */ 573 575 public function ajax_background_add() { … … 613 615 * @since 3.4.0 614 616 * @deprecated 3.5.0 617 * 618 * @return never 615 619 */ 616 620 public function wp_set_background_image() { -
trunk/src/wp-admin/includes/class-custom-image-header.php
r62353 r62704 1384 1384 * 1385 1385 * @since 3.9.0 1386 * 1387 * @return never 1386 1388 */ 1387 1389 public function ajax_header_crop() { … … 1453 1455 * 1454 1456 * @since 3.9.0 1457 * 1458 * @return never 1455 1459 */ 1456 1460 public function ajax_header_add() { … … 1481 1485 * 1482 1486 * @since 3.9.0 1487 * 1488 * @return never 1483 1489 */ 1484 1490 public function ajax_header_remove() { -
trunk/src/wp-admin/includes/class-wp-importer.php
r62690 r62704 299 299 * @param string $param The parameter name to retrieve. 300 300 * @param bool $required Optional. Whether the parameter is required. Default false. 301 * @return string|true|null|never The parameter value or true if found, null otherwise. 302 * The function exits when a required parameter is missing. 301 * @return string|true|null The parameter value, or true if the parameter was supplied 302 * without a value, or null if it was not supplied at all. 303 * Never returns when `$required` is true and the parameter 304 * is missing, as the function exits instead. 305 * @phpstan-return ( $required is true ? string|true : string|true|null ) 303 306 */ 304 307 function get_cli_args( $param, $required = false ) { -
trunk/src/wp-admin/includes/class-wp-list-table.php
r62491 r62704 1844 1844 * 1845 1845 * @since 3.1.0 1846 * 1847 * @return never 1846 1848 */ 1847 1849 public function ajax_response() { -
trunk/src/wp-admin/includes/comment.php
r62673 r62704 295 295 * 296 296 * @param string $msg Error Message. Assumed to contain HTML and be sanitized. 297 * @return never 297 298 */ 298 299 function comment_footer_die( $msg ) { -
trunk/src/wp-admin/includes/post.php
r62550 r62704 2184 2184 * 2185 2185 * @param int $post_id Optional. Post ID. 2186 * @return never 2186 2187 */ 2187 2188 function redirect_post( $post_id = 0 ) { -
trunk/src/wp-admin/includes/theme-install.php
r57714 r62704 252 252 * 253 253 * @global WP_Theme_Install_List_Table $wp_list_table 254 * 255 * @return never 254 256 */ 255 257 function install_theme_information() { -
trunk/src/wp-includes/canonical.php
r62178 r62704 39 39 * @param bool $do_redirect Optional. Redirect to the new URL. 40 40 * @return string|null The string of the URL, if redirect needed. Never returns if a redirect occurs, depending on $do_redirect. 41 * @phpstan-return ( $do_redirect is true ? null : string|null ) 41 42 */ 42 43 function redirect_canonical( $requested_url = null, $do_redirect = true ) { -
trunk/src/wp-includes/class-wp-ajax-response.php
r54133 r62704 149 149 * 150 150 * @since 2.1.0 151 * 152 * @return never 151 153 */ 152 154 public function send() { -
trunk/src/wp-includes/class-wp-customize-manager.php
r62489 r62704 448 448 * @param string|WP_Error $ajax_message Ajax return. 449 449 * @param string $message Optional. UI message. 450 * @return never 450 451 */ 451 452 protected function wp_die( $ajax_message, $message = null ) { … … 2428 2429 * @since 3.4.0 2429 2430 * @since 4.7.0 The semantics of this method have changed to update a changeset, optionally to also change the status and other attributes. 2431 * 2432 * @return never 2430 2433 */ 2431 2434 public function save() { … … 3387 3390 * 3388 3391 * @since 4.9.0 3392 * 3393 * @return never 3389 3394 */ 3390 3395 public function handle_override_changeset_lock_request() { … … 3686 3691 * 3687 3692 * @since 4.2.0 3693 * 3694 * @return never 3688 3695 */ 3689 3696 public function refresh_nonces() { … … 3699 3706 * 3700 3707 * @since 4.9.0 3708 * 3709 * @return never 3701 3710 */ 3702 3711 public function handle_dismiss_autosave_or_lock_request() { … … 5825 5834 * 5826 5835 * @since 4.9.0 5836 * 5837 * @return never 5827 5838 */ 5828 5839 public function handle_load_themes_request() { -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r61433 r62704 89 89 * 90 90 * @since 4.3.0 91 * 92 * @return never 91 93 */ 92 94 public function ajax_load_available_items() { … … 314 316 * 315 317 * @since 4.3.0 318 * 319 * @return never 316 320 */ 317 321 public function ajax_search_available_items() { … … 996 1000 * 997 1001 * @since 4.7.0 1002 * 1003 * @return never 998 1004 */ 999 1005 public function ajax_insert_auto_draft_post() { -
trunk/src/wp-includes/class-wp-customize-widgets.php
r62167 r62704 1698 1698 * 1699 1699 * @see wp_ajax_save_widget() 1700 * 1701 * @return never 1700 1702 */ 1701 1703 public function wp_ajax_update_widget() { -
trunk/src/wp-includes/class-wp-plugin-dependencies.php
r62178 r62704 434 434 * 435 435 * @since 6.5.0 436 * 437 * @return never 436 438 */ 437 439 public static function check_plugin_dependencies_during_ajax() { -
trunk/src/wp-includes/functions.php
r62703 r62704 1748 1748 * 1749 1749 * @since 5.4.0 1750 * 1751 * @return never 1750 1752 */ 1751 1753 function do_favicon() { … … 3713 3715 * 3714 3716 * @param string $action The nonce action. 3717 * @return never 3715 3718 */ 3716 3719 function wp_nonce_ays( $action ) { … … 3892 3895 * @param string $title Optional. Error title. Default empty string. 3893 3896 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3897 * @phpstan-return ( $args is array{exit: false} ? void : never ) 3894 3898 */ 3895 3899 function _default_wp_die_handler( $message, $title = '', $args = array() ) { … … 4094 4098 * @param string $title Optional. Error title (unused). Default empty string. 4095 4099 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4100 * @phpstan-return ( $args is array{exit: false} ? void : never ) 4096 4101 */ 4097 4102 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { … … 4136 4141 * @param string $title Optional. Error title. Default empty string. 4137 4142 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4143 * @phpstan-return ( $args is array{exit: false} ? void : never ) 4138 4144 */ 4139 4145 function _json_wp_die_handler( $message, $title = '', $args = array() ) { … … 4178 4184 * @param string $title Optional. Error title. Default empty string. 4179 4185 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4186 * @phpstan-return ( $args is array{exit: false} ? void : never ) 4180 4187 */ 4181 4188 function _jsonp_wp_die_handler( $message, $title = '', $args = array() ) { … … 4226 4233 * @param string $title Optional. Error title. Default empty string. 4227 4234 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4235 * @phpstan-return ( $args is array{exit: false} ? void : never ) 4228 4236 */ 4229 4237 function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) { … … 4256 4264 * @param string $title Optional. Error title. Default empty string. 4257 4265 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4266 * @phpstan-return ( $args is array{exit: false} ? void : never ) 4258 4267 */ 4259 4268 function _xml_wp_die_handler( $message, $title = '', $args = array() ) { … … 4301 4310 * @param string $title Optional. Error title (unused). Default empty string. 4302 4311 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4312 * @phpstan-return ( $args is array{exit: false} ? void : never ) 4303 4313 */ 4304 4314 function _scalar_wp_die_handler( $message = '', $title = '', $args = array() ) { … … 4565 4575 * @param int $status_code Optional. The HTTP status code to output. Default null. 4566 4576 * @param int $flags Optional. Options to be passed to json_encode(). Default 0. 4577 * @return never 4567 4578 */ 4568 4579 function wp_send_json( $response, $status_code = null, $flags = 0 ) { … … 4612 4623 * @param int $status_code Optional. The HTTP status code to output. Default null. 4613 4624 * @param int $flags Optional. Options to be passed to json_encode(). Default 0. 4625 * @return never 4614 4626 */ 4615 4627 function wp_send_json_success( $value = null, $status_code = null, $flags = 0 ) { … … 4639 4651 * @param int $status_code Optional. The HTTP status code to output. Default null. 4640 4652 * @param int $flags Optional. Options to be passed to json_encode(). Default 0. 4653 * @return never 4641 4654 */ 4642 4655 function wp_send_json_error( $value = null, $status_code = null, $flags = 0 ) { -
trunk/src/wp-includes/ms-deprecated.php
r61995 r62704 86 86 * @deprecated 3.0.0 Use wp_die() 87 87 * @see wp_die() 88 * 89 * @return never 88 90 */ 89 91 function graceful_fail( $message ) { … … 269 271 * 270 272 * @param string $url Optional. Redirect URL. Default empty. 273 * @return never 271 274 */ 272 275 function wpmu_admin_do_redirect( $url = '' ) { -
trunk/src/wp-includes/ms-load.php
r62044 r62704 466 466 * @param string $domain The requested domain for the error to reference. 467 467 * @param string $path The requested path for the error to reference. 468 * @return never 468 469 */ 469 470 function ms_not_installed( $domain, $path ) { -
trunk/src/wp-includes/option.php
r62334 r62704 560 560 * 561 561 * @param string $option Option name. 562 * @return void Never returns if `$option` is protected, as the function dies in that case. 563 * @phpstan-return ( $option is 'alloptions'|'notoptions' ? never : void ) 562 564 */ 563 565 function wp_protect_special_option( $option ) { -
trunk/src/wp-includes/pluggable.php
r62590 r62704 1368 1368 * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago, 1369 1369 * 2 if the nonce is valid and generated between 12-24 hours ago. 1370 * False if the nonce is invalid. 1370 * False if the nonce is invalid. Only possible when `$action` is -1, 1371 * as the function otherwise exits rather than returning false. 1372 * @phpstan-return ( $action is -1 ? int|false : int ) 1371 1373 */ 1372 1374 function check_admin_referer( $action = -1, $query_arg = '_wpnonce' ) { … … 1413 1415 * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago, 1414 1416 * 2 if the nonce is valid and generated between 12-24 hours ago. 1415 * False if the nonce is invalid. 1417 * False if the nonce is invalid. Only possible when `$stop` is false, 1418 * as the function otherwise exits rather than returning false. 1419 * @phpstan-return ( $stop is true ? int : int|false ) 1416 1420 */ 1417 1421 function check_ajax_referer( $action = -1, $query_arg = false, $stop = true ) { -
trunk/src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php
r56752 r62704 21 21 * 22 22 * @param string $type Stylesheet type. Either 'sitemap' or 'index'. 23 * @return never 23 24 */ 24 25 public function render_stylesheet( $type ) { -
trunk/src/wp-trackback.php
r62414 r62704 25 25 * 26 26 * @param int|bool $error Whether there was an error. 27 * Default '0'. Accepts '0' or '1', true or false.27 * Default 0. Accepts 0 or 1, true or false. 28 28 * @param string $error_message Error message if an error occurred. Default empty string. 29 * @return void Never returns if `$error` is truthy, as the function dies after 30 * sending the error response. 31 * @phpstan-return ( $error is 0|false ? void : never ) 29 32 */ 30 33 function trackback_response( $error = 0, $error_message = '' ) {
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)