Changeset 55694
- Timestamp:
- 04/27/2023 11:13:36 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
-
wp-admin/includes/ms.php (modified) (1 diff)
-
wp-admin/includes/user.php (modified) (4 diffs)
-
wp-includes/block-template-utils.php (modified) (8 diffs)
-
wp-includes/class-wp-post-type.php (modified) (1 diff)
-
wp-includes/class-wp-taxonomy.php (modified) (1 diff)
-
wp-includes/class-wp-theme-json-resolver.php (modified) (2 diffs)
-
wp-includes/class-wpdb.php (modified) (4 diffs)
-
wp-includes/http.php (modified) (8 diffs)
-
wp-includes/plugin.php (modified) (2 diffs)
-
wp-includes/post-template.php (modified) (1 diff)
-
wp-includes/post.php (modified) (1 diff)
-
wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r55415 r55694 131 131 132 132 /** 133 * Deletes a user from the network and remove from all sites. 133 * Deletes a user and all of their posts from the network. 134 * 135 * This function: 136 * 137 * - Deletes all posts (of all post types) authored by the user on all sites on the network 138 * - Deletes all links owned by the user on all sites on the network 139 * - Removes the user from all sites on the network 140 * - Deletes the user from the database 134 141 * 135 142 * @since 3.0.0 136 *137 * @todo Merge with wp_delete_user()?138 143 * 139 144 * @global wpdb $wpdb WordPress database abstraction object. -
trunk/src/wp-admin/includes/user.php
r55683 r55694 325 325 326 326 /** 327 * Remove user and optionally reassign posts and links to another user. 328 * 329 * If the $reassign parameter is not assigned to a User ID, then all posts will 330 * be deleted of that user. The action {@see 'delete_user'} that is passed the User ID 327 * Delete user and optionally reassign posts and links to another user. 328 * 329 * Note that on a Multisite installation the user only gets removed from the site 330 * and does not get deleted from the database. 331 * 332 * If the `$reassign` parameter is not assigned to a user ID, then all posts will 333 * be deleted of that user. The action {@see 'delete_user'} that is passed the user ID 331 334 * being deleted will be run after the posts are either reassigned or deleted. 332 * The user meta will also be deleted that are for that User ID.335 * The user meta will also be deleted that are for that user ID. 333 336 * 334 337 * @since 2.0.0 … … 336 339 * @global wpdb $wpdb WordPress database abstraction object. 337 340 * 338 * @param int $id User ID.341 * @param int $id User ID. 339 342 * @param int $reassign Optional. Reassign posts and links to new User ID. 340 343 * @return bool True when finished. … … 362 365 363 366 /** 364 * Fires immediately before a user is deleted from the database. 367 * Fires immediately before a user is deleted from the site. 368 * 369 * Note that on a Multisite installation the user only gets removed from the site 370 * and does not get deleted from the database. 365 371 * 366 372 * @since 2.0.0 … … 441 447 442 448 /** 443 * Fires immediately after a user is deleted from the database. 449 * Fires immediately after a user is deleted from the site. 450 * 451 * Note that on a Multisite installation the user may not have been deleted from 452 * the database depending on whether `wp_delete_user()` or `wpmu_delete_user()` 453 * was called. 444 454 * 445 455 * @since 2.9.0 -
trunk/src/wp-includes/block-template-utils.php
r55693 r55694 300 300 * @type array $slug__in List of slugs to include. 301 301 * @type array $slug__not_in List of slugs to skip. 302 * @type string $area A 'wp_template_part_area' taxonomy value to filter by (for wp_template_parttemplate type only).302 * @type string $area A 'wp_template_part_area' taxonomy value to filter by (for 'wp_template_part' template type only). 303 303 * @type string $post_type Post type to get the templates for. 304 304 * } … … 756 756 * 757 757 * @param WP_Post $post Template post. 758 * @return WP_Block_Template|WP_Error Template .758 * @return WP_Block_Template|WP_Error Template or error object. 759 759 */ 760 760 function _build_block_template_result_from_post( $post ) { … … 1056 1056 * @since 5.8.0 1057 1057 * 1058 * @param string $id Template unique identifier (example: theme_slug//template_slug).1059 * @param string $template_type Optional. Template type: `'wp_template'` or '`wp_template_part'`.1060 * Default `'wp_template'`.1058 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1059 * @param string $template_type Optional. Template type: 'wp_template' or 'wp_template_part'. 1060 * Default 'wp_template'. 1061 1061 * @return WP_Block_Template|null Template. 1062 1062 */ … … 1071 1071 * @param WP_Block_Template|null $block_template Return block template object to short-circuit the default query, 1072 1072 * or null to allow WP to run its normal queries. 1073 * @param string $id Template unique identifier (example: theme_slug//template_slug).1074 * @param string $template_type Template type: `'wp_template'` or '`wp_template_part'`.1073 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1074 * @param string $template_type Template type: 'wp_template' or 'wp_template_part'. 1075 1075 */ 1076 1076 $block_template = apply_filters( 'pre_get_block_template', null, $id, $template_type ); … … 1117 1117 * 1118 1118 * @param WP_Block_Template|null $block_template The found block template, or null if there isn't one. 1119 * @param string $id Template unique identifier (example: theme_slug//template_slug).1120 * @param array $template_type Template type: `'wp_template'` or '`wp_template_part'`.1119 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1120 * @param array $template_type Template type: 'wp_template' or 'wp_template_part'. 1121 1121 */ 1122 1122 return apply_filters( 'get_block_template', $block_template, $id, $template_type ); … … 1130 1130 * @since 5.9.0 1131 1131 * 1132 * @param string $id Template unique identifier (example: theme_slug//template_slug).1133 * @param string $template_type Optional. Template type: `'wp_template'` or '`wp_template_part'`.1134 * Default `'wp_template'`.1132 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1133 * @param string $template_type Optional. Template type: 'wp_template' or 'wp_template_part'. 1134 * Default 'wp_template'. 1135 1135 * @return WP_Block_Template|null The found block template, or null if there isn't one. 1136 1136 */ … … 1145 1145 * @param WP_Block_Template|null $block_template Return block template object to short-circuit the default query, 1146 1146 * or null to allow WP to run its normal queries. 1147 * @param string $id Template unique identifier (example: theme_slug//template_slug).1148 * @param string $template_type Template type: `'wp_template'` or '`wp_template_part'`.1147 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1148 * @param string $template_type Template type: 'wp_template' or 'wp_template_part'. 1149 1149 */ 1150 1150 $block_template = apply_filters( 'pre_get_block_file_template', null, $id, $template_type ); … … 1179 1179 * 1180 1180 * @param WP_Block_Template|null $block_template The found block template, or null if there is none. 1181 * @param string $id Template unique identifier (example: theme_slug//template_slug).1182 * @param string $template_type Template type: `'wp_template'` or '`wp_template_part'`.1181 * @param string $id Template unique identifier (example: 'theme_slug//template_slug'). 1182 * @param string $template_type Template type: 'wp_template' or 'wp_template_part'. 1183 1183 */ 1184 1184 return apply_filters( 'get_block_file_template', $block_template, $id, $template_type ); -
trunk/src/wp-includes/class-wp-post-type.php
r54318 r55694 411 411 * @param string $post_type Post type key. 412 412 * @param array|string $args Optional. Array or string of arguments for registering a post type. 413 * See register_post_type() for information on accepted arguments. 413 414 * Default empty array. 414 415 */ -
trunk/src/wp-includes/class-wp-taxonomy.php
r54877 r55694 282 282 * @param array|string $object_type Name of the object type for the taxonomy object. 283 283 * @param array|string $args Optional. Array or query string of arguments for registering a taxonomy. 284 * See register_taxonomy() for information on accepted arguments. 284 285 * Default empty array. 285 286 */ -
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r55448 r55694 14 14 * This class is for internal core usage and is not supposed to be used by extenders (plugins and/or themes). 15 15 * This is a low-level API that may need to do breaking changes. Please, 16 * use get_global_settings , get_global_styles, and get_global_stylesheetinstead.16 * use get_global_settings(), get_global_styles(), and get_global_stylesheet() instead. 17 17 * 18 18 * @access private … … 387 387 /** 388 388 * Returns the custom post type that contains the user's origin config 389 * for the active theme or a voidarray if none are found.389 * for the active theme or an empty array if none are found. 390 390 * 391 391 * This can also create and return a new draft custom post type. -
trunk/src/wp-includes/class-wpdb.php
r55431 r55694 2557 2557 * @param string $table Table name. 2558 2558 * @param array $data Data to insert (in column => value pairs). 2559 * Both $data columns and $datavalues should be "raw" (neither should be SQL escaped).2559 * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). 2560 2560 * Sending a null value will cause the column to be set to NULL - the corresponding 2561 2561 * format is ignored in this case. 2562 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.2563 * If string, that format will be used for all of the values in $data.2562 * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`. 2563 * If string, that format will be used for all of the values in `$data`. 2564 2564 * A format is one of '%d', '%f', '%s' (integer, float, string). 2565 * If omitted, all values in $datawill be treated as strings unless otherwise2565 * If omitted, all values in `$data` will be treated as strings unless otherwise 2566 2566 * specified in wpdb::$field_types. Default null. 2567 2567 * @return int|false The number of rows inserted, or false on error. … … 2587 2587 * @param string $table Table name. 2588 2588 * @param array $data Data to insert (in column => value pairs). 2589 * Both $data columns and $datavalues should be "raw" (neither should be SQL escaped).2589 * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). 2590 2590 * Sending a null value will cause the column to be set to NULL - the corresponding 2591 2591 * format is ignored in this case. 2592 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.2593 * If string, that format will be used for all of the values in $data.2592 * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`. 2593 * If string, that format will be used for all of the values in `$data`. 2594 2594 * A format is one of '%d', '%f', '%s' (integer, float, string). 2595 * If omitted, all values in $datawill be treated as strings unless otherwise2595 * If omitted, all values in `$data` will be treated as strings unless otherwise 2596 2596 * specified in wpdb::$field_types. Default null. 2597 2597 * @return int|false The number of rows affected, or false on error. … … 2604 2604 * Helper function for insert and replace. 2605 2605 * 2606 * Runs an insert or replace query based on $typeargument.2606 * Runs an insert or replace query based on `$type` argument. 2607 2607 * 2608 2608 * @since 3.0.0 … … 2614 2614 * @param string $table Table name. 2615 2615 * @param array $data Data to insert (in column => value pairs). 2616 * Both $data columns and $datavalues should be "raw" (neither should be SQL escaped).2616 * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). 2617 2617 * Sending a null value will cause the column to be set to NULL - the corresponding 2618 2618 * format is ignored in this case. 2619 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.2620 * If string, that format will be used for all of the values in $data.2619 * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`. 2620 * If string, that format will be used for all of the values in `$data`. 2621 2621 * A format is one of '%d', '%f', '%s' (integer, float, string). 2622 * If omitted, all values in $datawill be treated as strings unless otherwise2622 * If omitted, all values in `$data` will be treated as strings unless otherwise 2623 2623 * specified in wpdb::$field_types. Default null. 2624 * @param string $type Optional. Type of operation. Possible values include'INSERT' or 'REPLACE'.2624 * @param string $type Optional. Type of operation. Either 'INSERT' or 'REPLACE'. 2625 2625 * Default 'INSERT'. 2626 2626 * @return int|false The number of rows affected, or false on error. -
trunk/src/wp-includes/http.php
r55693 r55694 40 40 * @param string $url URL to retrieve. 41 41 * @param array $args Optional. Request arguments. Default empty array. 42 * See WP_Http::request() for information on accepted arguments. 42 43 * @return array|WP_Error The response or WP_Error on failure. 43 44 */ … … 61 62 * @param string $url URL to retrieve. 62 63 * @param array $args Optional. Request arguments. Default empty array. 64 * See WP_Http::request() for information on accepted arguments. 63 65 * @return array|WP_Error The response or WP_Error on failure. 64 66 */ … … 82 84 * @param string $url URL to retrieve. 83 85 * @param array $args Optional. Request arguments. Default empty array. 86 * See WP_Http::request() for information on accepted arguments. 84 87 * @return array|WP_Error The response or WP_Error on failure. 85 88 */ … … 103 106 * @param string $url URL to retrieve. 104 107 * @param array $args Optional. Request arguments. Default empty array. 108 * See WP_Http::request() for information on accepted arguments. 105 109 * @return array|WP_Error The response or WP_Error on failure. 106 110 */ … … 126 130 * @param string $url URL to retrieve. 127 131 * @param array $args Optional. Request arguments. Default empty array. 132 * See WP_Http::request() for information on accepted arguments. 128 133 * @return array|WP_Error { 129 134 * The response array or a WP_Error on failure. … … 156 161 * @param string $url URL to retrieve. 157 162 * @param array $args Optional. Request arguments. Default empty array. 163 * See WP_Http::request() for information on accepted arguments. 158 164 * @return array|WP_Error The response or WP_Error on failure. 159 165 */ … … 173 179 * @param string $url URL to retrieve. 174 180 * @param array $args Optional. Request arguments. Default empty array. 181 * See WP_Http::request() for information on accepted arguments. 175 182 * @return array|WP_Error The response or WP_Error on failure. 176 183 */ … … 190 197 * @param string $url URL to retrieve. 191 198 * @param array $args Optional. Request arguments. Default empty array. 199 * See WP_Http::request() for information on accepted arguments. 192 200 * @return array|WP_Error The response or WP_Error on failure. 193 201 */ -
trunk/src/wp-includes/plugin.php
r53809 r55694 576 576 * @since 2.5.0 577 577 * 578 * @see has_filter() has_action()is an alias of has_filter().578 * @see has_filter() This function is an alias of has_filter(). 579 579 * 580 580 * @param string $hook_name The name of the action hook. … … 965 965 966 966 /** 967 * Builds Unique ID for storage and retrieval. 968 * 969 * The old way to serialize the callback caused issues and this function is the 970 * solution. It works by checking for objects and creating a new property in 971 * the class to keep track of the object and new objects of the same class that 972 * need to be added. 973 * 974 * It also allows for the removal of actions and filters for objects after they 975 * change class properties. It is possible to include the property $wp_filter_id 976 * in your class and set it to "null" or a number to bypass the workaround. 977 * However this will prevent you from adding new classes and any new classes 978 * will overwrite the previous hook by the same class. 967 * Builds a unique string ID for a hook callback function. 979 968 * 980 969 * Functions and static method callbacks are just returned as strings and -
trunk/src/wp-includes/post-template.php
r55652 r55694 38 38 * @param string $after Optional. Markup to append to the title. Default empty. 39 39 * @param bool $display Optional. Whether to echo or return the title. Default true for echo. 40 * @return void|string Void if `$display` argument is true, current post title if `$display` is false. 40 * @return void|string Void if `$display` argument is true or the title is empty, 41 * current post title if `$display` is false. 41 42 */ 42 43 function the_title( $before = '', $after = '', $display = true ) { -
trunk/src/wp-includes/post.php
r55677 r55694 6140 6140 * @param string|array $args Arguments for inserting an attachment. 6141 6141 * @param string|false $file Optional. Filename. Default false. 6142 * @param int $parent_post_id Optional. Parent post ID . Default 0.6142 * @param int $parent_post_id Optional. Parent post ID or 0 for no parent. Default 0. 6143 6143 * @param bool $wp_error Optional. Whether to return a WP_Error on failure. Default false. 6144 6144 * @param bool $fire_after_hooks Optional. Whether to fire the after insert hooks. Default true. -
trunk/src/wp-includes/theme.php
r55677 r55694 825 825 /** 826 826 * Fires after the theme is switched. 827 * 828 * See {@see 'after_switch_theme'}. 827 829 * 828 830 * @since 1.5.0 … … 3387 3389 if ( $old_theme->exists() ) { 3388 3390 /** 3389 * Fires on the first WP load after a theme switch if the old theme still exists.3391 * Fires on the next WP load after the theme has been switched. 3390 3392 * 3391 * This action fires multiple times and the parameters differs 3392 * according to the context, if the old theme exists or not. 3393 * If the old theme is missing, the parameter will be the slug 3393 * The parameters differ according to whether the old theme exists or not. 3394 * If the old theme is missing, the old name will instead be the slug 3394 3395 * of the old theme. 3396 * 3397 * See {@see 'switch_theme'}. 3395 3398 * 3396 3399 * @since 3.3.0
Note: See TracChangeset
for help on using the changeset viewer.