Changeset 56414
- Timestamp:
- 08/18/2023 05:27:16 PM (14 months ago)
- Location:
- trunk/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r56176 r56414 855 855 * Default false. 856 856 * @param bool $silent Prevent calling activation hooks. Default false. 857 * @return bool|WP_Error True when finished or WP_Error if there were errors during a plugin activation.857 * @return true|WP_Error True when finished or WP_Error if there were errors during a plugin activation. 858 858 */ 859 859 function activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) { … … 2441 2441 * @param string $plugin Single plugin to resume. 2442 2442 * @param string $redirect Optional. URL to redirect to. Default empty string. 2443 * @return bool|WP_Error True on success, false if `$plugin` was not paused,2443 * @return true|WP_Error True on success, false if `$plugin` was not paused, 2444 2444 * `WP_Error` on failure. 2445 2445 */ -
trunk/src/wp-admin/includes/schema.php
r56176 r56414 980 980 * @param bool $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation. 981 981 * Default false, meaning the network is a subdirectory installation. 982 * @return bool|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful,982 * @return true|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful, 983 983 * so the error code must be checked) or failure. 984 984 */ -
trunk/src/wp-includes/block-supports/utils.php
r53076 r56414 19 19 * @param string $feature Optional name of individual feature to check. 20 20 * 21 * @return bool eanWhether to serialize block support styles & classes.21 * @return bool Whether to serialize block support styles & classes. 22 22 */ 23 23 function wp_should_skip_block_supports_serialization( $block_type, $feature_set, $feature = null ) { -
trunk/src/wp-includes/block-template-utils.php
r56413 r56414 309 309 * Arguments to retrieve templates. Optional, empty by default. 310 310 * 311 * @type array$slug__in List of slugs to include.312 * @type array$slug__not_in List of slugs to skip.313 * @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only).314 * @type string $post_type Post type to get the templates for.311 * @type string[] $slug__in List of slugs to include. 312 * @type string[] $slug__not_in List of slugs to skip. 313 * @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only). 314 * @type string $post_type Post type to get the templates for. 315 315 * } 316 316 * -
trunk/src/wp-includes/class-wp-block-type.php
r55673 r56414 334 334 * @param string $name Deprecated property name. 335 335 * 336 * @return bool eanReturns true when for the new property the first item in the array exists,337 * 336 * @return bool Returns true when for the new property the first item in the array exists, 337 * or false otherwise. 338 338 */ 339 339 public function __isset( $name ) { -
trunk/src/wp-includes/class-wp-navigation-fallback.php
r56257 r56414 32 32 * @since 6.3.0 33 33 * 34 * @param bool Whether to create a fallback navigation menu. Default true.34 * @param bool $create Whether to create a fallback navigation menu. Default true. 35 35 */ 36 36 $should_create_fallback = apply_filters( 'wp_navigation_should_create_fallback', true ); -
trunk/src/wp-includes/class-wp-theme-json.php
r56382 r56414 2686 2686 * @param array $path Path to inspect. 2687 2687 * @param bool|array $override Data to compute whether to override the preset. 2688 * @return bool ean2688 * @return bool 2689 2689 */ 2690 2690 protected static function should_override_preset( $theme_json, $path, $override ) { -
trunk/src/wp-includes/cron.php
r56394 r56414 58 58 59 59 /** 60 * Filter to preflight or hijackscheduling an event.60 * Filter to override scheduling an event. 61 61 * 62 62 * Returning a non-null value will short-circuit adding the event to the … … 377 377 378 378 /** 379 * Filter to preflight or hijackrescheduling of a recurring event.379 * Filter to override rescheduling of a recurring event. 380 380 * 381 381 * Returning a non-null value will short-circuit the normal rescheduling … … 474 474 475 475 /** 476 * Filter to preflight or hijackunscheduling of events.476 * Filter to override unscheduling of events. 477 477 * 478 478 * Returning a non-null value will short-circuit the normal unscheduling … … 527 527 * Unschedules all events attached to the hook with the specified arguments. 528 528 * 529 * Warning: This function may return Boolean FALSE, but may also return a non-Boolean530 * value which evaluates to FALSE. For information about casting to booleans see the529 * Warning: This function may return boolean false, but may also return a non-boolean 530 * value which evaluates to false. For information about casting to booleans see the 531 531 * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use 532 532 * the `===` operator for testing the return value of this function. … … 564 564 565 565 /** 566 * Filter to preflight or hijackclearing a scheduled hook.566 * Filter to override clearing a scheduled hook. 567 567 * 568 568 * Returning a non-null value will short-circuit the normal unscheduling … … 638 638 * Can be useful for plugins when deactivating to clean up the cron queue. 639 639 * 640 * Warning: This function may return Boolean FALSE, but may also return a non-Boolean641 * value which evaluates to FALSE. For information about casting to booleans see the640 * Warning: This function may return boolean false, but may also return a non-boolean 641 * value which evaluates to false. For information about casting to booleans see the 642 642 * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use 643 643 * the `===` operator for testing the return value of this function. … … 654 654 function wp_unschedule_hook( $hook, $wp_error = false ) { 655 655 /** 656 * Filter to preflight or hijackclearing all events attached to the hook.656 * Filter to override clearing all events attached to the hook. 657 657 * 658 658 * Returning a non-null value will short-circuit the normal unscheduling … … 750 750 function wp_get_scheduled_event( $hook, $args = array(), $timestamp = null ) { 751 751 /** 752 * Filter to preflight or hijackretrieving a scheduled event.752 * Filter to override retrieving a scheduled event. 753 753 * 754 754 * Returning a non-null value will short-circuit the normal process, … … 966 966 * @since 5.7.0 Functionality moved to _wp_cron() to which this becomes a wrapper. 967 967 * 968 * @return bool|int|void On success an integer indicating number of events spawned (0 indicates no969 * events needed to be spawned), false if spawning fails for one or more events or970 * void if the function registered _wp_cron() to run on the action.968 * @return false|int|void On success an integer indicating number of events spawned (0 indicates no 969 * events needed to be spawned), false if spawning fails for one or more events or 970 * void if the function registered _wp_cron() to run on the action. 971 971 */ 972 972 function wp_cron() { … … 1161 1161 function wp_get_ready_cron_jobs() { 1162 1162 /** 1163 * Filter to preflight or hijackretrieving ready cron jobs.1163 * Filter to override retrieving ready cron jobs. 1164 1164 * 1165 1165 * Returning an array will short-circuit the normal retrieval of ready -
trunk/src/wp-includes/functions.php
r56326 r56414 8601 8601 * @param int|float $expected The expected value. 8602 8602 * @param int|float $actual The actual number. 8603 * @param int|float $precision The allowed variation.8603 * @param int|float $precision Optional. The allowed variation. Default 1. 8604 8604 * @return bool Whether the numbers match within the specified precision. 8605 8605 */ -
trunk/src/wp-includes/functions.wp-scripts.php
r56033 r56414 74 74 * Called by admin-header.php and {@see 'wp_head'} hook. Since it is called by wp_head on every page load, 75 75 * the function does not instantiate the WP_Scripts object unless script names are explicitly passed. 76 * Makes use of already-instantiated $wp_scriptsglobal if present. Use provided {@see 'wp_print_scripts'}76 * Makes use of already-instantiated `$wp_scripts` global if present. Use provided {@see 'wp_print_scripts'} 77 77 * hook to register/enqueue new scripts. 78 78 * … … 114 114 * 115 115 * Code will only be added if the script is already in the queue. 116 * Accepts a string $data containing the Code. If two or more code blocks117 * are added to the same script $handle, they will be printed in the order116 * Accepts a string `$data` containing the code. If two or more code blocks 117 * are added to the same script `$handle`, they will be printed in the order 118 118 * they were added, i.e. the latter added code can redeclare the previous. 119 119 * … … 202 202 * Works only if the script has already been registered. 203 203 * 204 * Accepts an associative array $l10nand creates a JavaScript object:205 * 206 * "$object_name" ={204 * Accepts an associative array `$l10n` and creates a JavaScript object: 205 * 206 * "$object_name": { 207 207 * key: value, 208 208 * key: value, … … 338 338 * Enqueues a script. 339 339 * 340 * Registers the script if $srcprovided (does NOT overwrite), and enqueues it.340 * Registers the script if `$src` provided (does NOT overwrite), and enqueues it. 341 341 * 342 342 * @see WP_Dependencies::add() -
trunk/src/wp-includes/l10n.php
r56003 r56414 1518 1518 * @type string $id ID attribute of the select element. Default 'locale'. 1519 1519 * @type string $name Name attribute of the select element. Default 'locale'. 1520 * @type array$languages List of installed languages, contain only the locales.1520 * @type string[] $languages List of installed languages, contain only the locales. 1521 1521 * Default empty array. 1522 1522 * @type array $translations List of available translations. Default result of -
trunk/src/wp-includes/post.php
r56200 r56414 4975 4975 * @since 5.7.0 4976 4976 * 4977 * @param string $post_date The date in mysql format .4978 * @param string $post_date_gmt The GMT date in mysql format .4977 * @param string $post_date The date in mysql format (`Y-m-d H:i:s`). 4978 * @param string $post_date_gmt The GMT date in mysql format (`Y-m-d H:i:s`). 4979 4979 * @return string|false A valid Gregorian-calendar date string, or false on failure. 4980 4980 */ -
trunk/src/wp-includes/theme.php
r56194 r56414 4269 4269 * @since 5.9.0 4270 4270 * 4271 * @return bool eanWhether the active theme is a block-based theme or not.4271 * @return bool Whether the active theme is a block-based theme or not. 4272 4272 */ 4273 4273 function wp_is_block_theme() {
Note: See TracChangeset
for help on using the changeset viewer.