Changeset 58075
- Timestamp:
- 05/02/2024 01:17:45 PM (9 months ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r58069 r58075 557 557 558 558 /** 559 * Flushes rewrite rules if siteurl, home or page_on_frontchanged.559 * Flushes rewrite rules if `siteurl`, `home` or `page_on_front` changed. 560 560 * 561 561 * @since 2.1.0 … … 577 577 578 578 /** 579 * Resets global variables based on $_GET and $_POST.579 * Resets global variables based on `$_GET` and `$_POST`. 580 580 * 581 581 * This function resets global variables based on the names passed 582 * in the $vars array to the value of $_POST[$var] or $_GET[$var] or ''583 * if neither is defined.582 * in the `$vars` array to the value of `$_POST[$var]` or `$_GET[$var]` or an 583 * empty string if neither is defined. 584 584 * 585 585 * @since 2.0.0 … … 755 755 * Filters a screen option value before it is set. 756 756 * 757 * The filter can also be used to modify non-standard [items]_per_page757 * The filter can also be used to modify non-standard `[items]_per_page` 758 758 * settings. See the parent function for a full list of standard options. 759 759 * … … 1305 1305 1306 1306 /** 1307 * Adds the latest Heartbeat and REST -API nonce to the Heartbeat response.1307 * Adds the latest Heartbeat and REST API nonce to the Heartbeat response. 1308 1308 * 1309 1309 * @since 5.0.0 … … 1399 1399 1400 1400 /** 1401 * Filters the admin canonical urlvalue.1401 * Filters the admin canonical URL value. 1402 1402 * 1403 1403 * @since 6.5.0 1404 1404 * 1405 * @param string $filtered_url The admin canonical urlvalue.1405 * @param string $filtered_url The admin canonical URL value. 1406 1406 */ 1407 1407 $filtered_url = apply_filters( 'wp_admin_canonical_url', $filtered_url ); -
trunk/src/wp-includes/block-bindings.php
r58073 r58075 88 88 * The callback has a mixed return type; it may return a string to override 89 89 * the block's original value, null, false to remove an attribute, etc. 90 * @type array$uses_context (optional) Array of values to add to block `uses_context` needed by the source.90 * @type string[] $uses_context (optional) Array of values to add to block `uses_context` needed by the source. 91 91 * } 92 92 * @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure. -
trunk/src/wp-includes/class-wp-block-bindings-registry.php
r58073 r58075 37 37 * 38 38 * @since 6.5.0 39 * @var array39 * @var string[] 40 40 */ 41 41 private $allowed_source_properties = array( … … 49 49 * 50 50 * @since 6.5.0 51 * @var array51 * @var string[] 52 52 */ 53 53 private $supported_blocks = array( … … 91 91 * The callback has a mixed return type; it may return a string to override 92 92 * the block's original value, null, false to remove an attribute, etc. 93 * @type array$uses_context (optional) Array of values to add to block `uses_context` needed by the source.93 * @type string[] $uses_context (optional) Array of values to add to block `uses_context` needed by the source. 94 94 * } 95 95 * @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure. -
trunk/src/wp-includes/class-wp-block-bindings-source.php
r57641 r58075 37 37 public $label; 38 38 39 40 39 /** 41 40 * The function used to get the value from the source. … … 50 49 * 51 50 * @since 6.5.0 52 * @var array|null51 * @var string[]|null 53 52 */ 54 53 public $uses_context = null; -
trunk/src/wp-includes/class-wp-script-modules.php
r57840 r58075 19 19 * 20 20 * @since 6.5.0 21 * @var array 21 * @var array[] 22 22 */ 23 23 private $registered = array(); … … 275 275 * @since 6.5.0 276 276 * 277 * @return array Script modules marked for enqueue, keyed by script module identifier.277 * @return array[] Script modules marked for enqueue, keyed by script module identifier. 278 278 */ 279 279 private function get_marked_for_enqueue(): array { … … 297 297 * @since 6.5.0 298 298 * 299 300 299 * @param string[] $ids The identifiers of the script modules for which to gather dependencies. 301 * @param array$import_types Optional. Import types of dependencies to retrieve: 'static', 'dynamic', or both.300 * @param string[] $import_types Optional. Import types of dependencies to retrieve: 'static', 'dynamic', or both. 302 301 * Default is both. 303 * @return array List of dependencies, keyed by script module identifier.302 * @return array[] List of dependencies, keyed by script module identifier. 304 303 */ 305 304 private function get_dependencies( array $ids, array $import_types = array( 'static', 'dynamic' ) ) { … … 354 353 * @since 6.5.0 355 354 * 356 * @param string $src Module source url.355 * @param string $src Module source URL. 357 356 * @param string $id Module identifier. 358 357 */ -
trunk/src/wp-includes/cron.php
r57239 r58075 660 660 * 661 661 * For plugins replacing wp-cron, return the number of events successfully 662 * unscheduled (zero if no events were registered with the hook) or false 663 * if unscheduling one or more events fails. 662 * unscheduled (zero if no events were registered with the hook). If unscheduling 663 * one or more events fails then return either a WP_Error object or false depending 664 * on the value of the `$wp_error` parameter. 664 665 * 665 666 * @since 5.1.0 … … 1048 1049 * 1049 1050 * The 'interval' is a number in seconds of when the cron job should run. 1050 * So for 'hourly' the time is `HOUR_IN_SECONDS` ( 60 * 60 or 3600). For 'monthly',1051 * the value would be `MONTH_IN_SECONDS` ( 30 * 24 * 60 * 60 or 2592000).1051 * So for 'hourly' the time is `HOUR_IN_SECONDS` (`60 * 60` or `3600`). For 'monthly', 1052 * the value would be `MONTH_IN_SECONDS` (`30 * 24 * 60 * 60` or `2592000`). 1052 1053 * 1053 1054 * The 'display' is the description. For the 'monthly' key, the 'display' 1054 1055 * would be `__( 'Once Monthly' )`. 1055 1056 * 1056 * For your plugin, you will be passed an array. You can easilyadd your1057 * schedule by doing the following .1057 * For your plugin, you will be passed an array. You can add your 1058 * schedule by doing the following: 1058 1059 * 1059 1060 * // Filter parameter variable name is 'array'. -
trunk/src/wp-includes/fonts/class-wp-font-face.php
r56500 r58075 257 257 * @since 6.4.0 258 258 * 259 * @param array $font_faces The font-faces to generate @font-face CSS styles.259 * @param array[] $font_faces The font-faces to generate @font-face CSS styles. 260 260 * @return string The `@font-face` CSS styles. 261 261 */ -
trunk/src/wp-includes/fonts/class-wp-font-utils.php
r58073 r58075 245 245 * @access private 246 246 * 247 * @return arrayA collection of mime types keyed by file extension.247 * @return string[] A collection of mime types keyed by file extension. 248 248 */ 249 249 public static function get_allowed_font_mime_types() { -
trunk/src/wp-includes/option.php
r57920 r58075 3035 3035 * @since 6.6.0 3036 3036 * 3037 * @return arrayThe values that trigger autoloading.3037 * @return string[] The values that trigger autoloading. 3038 3038 */ 3039 3039 function wp_autoload_values_to_autoload() { … … 3047 3047 * @since 6.6.0 3048 3048 * 3049 * @param array$autoload_values Autoload values used to autoload option.3049 * @param string[] $autoload_values Autoload values used to autoload option. 3050 3050 * Default list contains 'yes', 'on', 'auto-on', and 'auto'. 3051 3051 */
Note: See TracChangeset
for help on using the changeset viewer.