Changeset 55398
- Timestamp:
- 02/21/2023 04:37:03 PM (20 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/author-template.php
r54262 r55398 156 156 * 157 157 * @param string $field Optional. The user field to retrieve. Default empty. 158 * @param int|false $user_id Optional. User ID. 158 * @param int|false $user_id Optional. User ID. Defaults to the current post author. 159 159 * @return string The author's field from the current author's DB object, otherwise an empty string. 160 160 */ … … 197 197 * @param string $field Selects the field of the users record. See get_the_author_meta() 198 198 * for the list of possible fields. 199 * @param int|false $user_id Optional. User ID. 199 * @param int|false $user_id Optional. User ID. Defaults to the current post author. 200 200 * 201 201 * @see get_the_author_meta() -
trunk/src/wp-includes/bookmark.php
r53959 r55398 72 72 * @param string $field The name of the data field to return. 73 73 * @param int $bookmark The bookmark ID to get field. 74 * @param string $context Optional. The context of how the field will be used. 74 * @param string $context Optional. The context of how the field will be used. Default 'display'. 75 75 * @return string|WP_Error 76 76 */ -
trunk/src/wp-includes/class-wp-editor.php
r55276 r55398 1452 1452 * @param string $mce_locale The locale used for the editor. 1453 1453 * @param bool $json_only Optional. Whether to include the JavaScript calls to tinymce.addI18n() and 1454 * tinymce.ScriptLoader.markDone(). 1454 * tinymce.ScriptLoader.markDone(). Default false. 1455 1455 * @return string Translation object, JSON encoded. 1456 1456 */ … … 1752 1752 * @since 3.1.0 1753 1753 * 1754 * @param array $args Optional. Accepts 'pagenum' and 's' (search) arguments. 1754 * @param array $args { 1755 * Optional. Array of link query arguments. 1756 * 1757 * @type int $pagenum Page number. Default 1. 1758 * @type string $s Search keywords. 1759 * } 1755 1760 * @return array|false $results { 1756 1761 * An array of associative arrays of query results, false if there are none. -
trunk/src/wp-includes/class-wp-error.php
r54133 r55398 57 57 * @param string|int $code Error code. 58 58 * @param string $message Error message. 59 * @param mixed $data Optional. Error data. 59 * @param mixed $data Optional. Error data. Default empty string. 60 60 */ 61 61 public function __construct( $code = '', $message = '', $data = '' ) { … … 104 104 * @since 2.1.0 105 105 * 106 * @param string|int $code Optional. Retrieve messages matching code, if exists. 106 * @param string|int $code Optional. Error code to retrieve the messages for. 107 * Default empty string. 107 108 * @return string[] Error strings on success, or empty array if there are none. 108 109 */ … … 133 134 * @since 2.1.0 134 135 * 135 * @param string|int $code Optional. Error code to retrieve message. 136 * @param string|int $code Optional. Error code to retrieve the message for. 137 * Default empty string. 136 138 * @return string The error message. 137 139 */ … … 152 154 * @since 2.1.0 153 155 * 154 * @param string|int $code Optional. Error code. 156 * @param string|int $code Optional. Error code. Default empty string. 155 157 * @return mixed Error data, if it exists. 156 158 */ … … 186 188 * @param string|int $code Error code. 187 189 * @param string $message Error message. 188 * @param mixed $data Optional. Error data. 190 * @param mixed $data Optional. Error data. Default empty string. 189 191 */ 190 192 public function add( $code, $message, $data = '' ) { -
trunk/src/wp-includes/class-wp-meta-query.php
r55311 r55398 346 346 * @param object $context Optional. The main query object that corresponds to the type, for 347 347 * example a `WP_Query`, `WP_User_Query`, or `WP_Site_Query`. 348 * Default null. 348 349 * @return string[]|false { 349 350 * Array containing JOIN and WHERE SQL clauses to append to the main query, … … 522 523 * @param string $clause_key Optional. The array key used to name the clause in the original `$meta_query` 523 524 * parameters. If not provided, a key will be generated automatically. 525 * Default empty string. 524 526 * @return string[] { 525 527 * Array containing JOIN and WHERE SQL clauses to append to a first-order query. -
trunk/src/wp-includes/class-wp-widget.php
r54133 r55398 153 153 * @since 2.8.0 154 154 * 155 * @param string $id_base Optional.Base ID for the widget, lowercase and unique. If left empty,155 * @param string $id_base Base ID for the widget, lowercase and unique. If left empty, 156 156 * a portion of the widget's PHP class name will be used. Has to be unique. 157 157 * @param string $name Name for the widget displayed on the configuration page. … … 189 189 * @see WP_Widget::__construct() 190 190 * 191 * @param string $id_base Optional.Base ID for the widget, lowercase and unique. If left empty,191 * @param string $id_base Base ID for the widget, lowercase and unique. If left empty, 192 192 * a portion of the widget's PHP class name will be used. Has to be unique. 193 193 * @param string $name Name for the widget displayed on the configuration page. -
trunk/src/wp-includes/class-wpdb.php
r55158 r55398 1073 1073 * 1074 1074 * @param int $blog_id 1075 * @param int $network_id Optional. 1075 * @param int $network_id Optional. Network ID. Default 0. 1076 1076 * @return int Previous blog ID. 1077 1077 */ … … 1102 1102 * @since 3.0.0 1103 1103 * 1104 * @param int $blog_id Optional. 1104 * @param int $blog_id Optional. Blog ID to retrieve the table prefix for. 1105 * Defaults to the current blog ID. 1105 1106 * @return string Blog prefix. 1106 1107 */ … … 1221 1222 * 1222 1223 * @param string $db Database name. 1223 * @param mysqli|resource $dbh Optional database connection. 1224 * @param mysqli|resource $dbh Optional. Database connection. 1225 * Defaults to the current database handle. 1224 1226 */ 1225 1227 public function select( $db, $dbh = null ) { … … 2562 2564 * A format is one of '%d', '%f', '%s' (integer, float, string). 2563 2565 * If omitted, all values in $data will be treated as strings unless otherwise 2564 * specified in wpdb::$field_types. 2566 * specified in wpdb::$field_types. Default null. 2565 2567 * @return int|false The number of rows inserted, or false on error. 2566 2568 */ … … 2592 2594 * A format is one of '%d', '%f', '%s' (integer, float, string). 2593 2595 * If omitted, all values in $data will be treated as strings unless otherwise 2594 * specified in wpdb::$field_types. 2596 * specified in wpdb::$field_types. Default null. 2595 2597 * @return int|false The number of rows affected, or false on error. 2596 2598 */ … … 2619 2621 * A format is one of '%d', '%f', '%s' (integer, float, string). 2620 2622 * If omitted, all values in $data will be treated as strings unless otherwise 2621 * specified in wpdb::$field_types. 2623 * specified in wpdb::$field_types. Default null. 2622 2624 * @param string $type Optional. Type of operation. Possible values include 'INSERT' or 'REPLACE'. 2623 2625 * Default 'INSERT'. … … 2685 2687 * A format is one of '%d', '%f', '%s' (integer, float, string). 2686 2688 * If omitted, all values in $data will be treated as strings unless otherwise 2687 * specified in wpdb::$field_types. 2689 * specified in wpdb::$field_types. Default null. 2688 2690 * @param array|string $where_format Optional. An array of formats to be mapped to each of the values in $where. 2689 2691 * If string, that format will be used for all of the items in $where. 2690 2692 * A format is one of '%d', '%f', '%s' (integer, float, string). 2691 * If omitted, all values in $where will be treated as strings. 2693 * If omitted, all values in $where will be treated as strings. Default null. 2692 2694 * @return int|false The number of rows updated, or false on error. 2693 2695 */ … … 2761 2763 * A format is one of '%d', '%f', '%s' (integer, float, string). 2762 2764 * If omitted, all values in $data will be treated as strings unless otherwise 2763 * specified in wpdb::$field_types. 2765 * specified in wpdb::$field_types. Default null. 2764 2766 * @return int|false The number of rows deleted, or false on error. 2765 2767 */ … … 2968 2970 * 2969 2971 * @param string|null $query Optional. SQL query. Defaults to null, use the result from the previous query. 2970 * @param int $x Optional. Column of value to return. Indexed from 0. 2971 * @param int $y Optional. Row of value to return. Indexed from 0. 2972 * @param int $x Optional. Column of value to return. Indexed from 0. Default 0. 2973 * @param int $y Optional. Row of value to return. Indexed from 0. Default 0. 2972 2974 * @return string|null Database query result (as string), or null on failure. 2973 2975 */ … … 3003 3005 * correspond to an stdClass object, an associative array, or a numeric array, 3004 3006 * respectively. Default OBJECT. 3005 * @param int $y Optional. Row to return. Indexed from 0. 3007 * @param int $y Optional. Row to return. Indexed from 0. Default 0. 3006 3008 * @return array|object|null|void Database query result in format specified by $output or null on failure. 3007 3009 */ … … 3047 3049 * 3048 3050 * @param string|null $query Optional. SQL query. Defaults to previous query. 3049 * @param int $x Optional. Column to return. Indexed from 0. 3051 * @param int $x Optional. Column to return. Indexed from 0. Default 0. 3050 3052 * @return array Database query result. Array indexed from 0 by SQL result row number. 3051 3053 */ … … 3084 3086 * return an associative array of row objects keyed by the value 3085 3087 * of each row's first column's value. Duplicate keys are discarded. 3088 * Default OBJECT. 3086 3089 * @return array|object|null Database query results. 3087 3090 */ -
trunk/src/wp-includes/comment-template.php
r55395 r55398 2160 2160 * @type bool $echo Whether to echo the output or return it. Default true. 2161 2161 * } 2162 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. 2162 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Default null. 2163 2163 * @return void|string Void if 'echo' argument is true, or no comments to list. 2164 2164 * Otherwise, HTML list of comments. -
trunk/src/wp-includes/comment.php
r55369 r55398 156 156 * 157 157 * @param int $post_id The ID of the post. 158 * @param array $args Optional. See WP_Comment_Query::__construct() for information on accepted arguments. 158 * @param array $args { 159 * Optional. See WP_Comment_Query::__construct() for information on accepted arguments. 160 * 161 * @type int $status Comment status to limit results by. Defaults to approved comments. 162 * @type int $post_id Limit results to those affiliated with a given post ID. 163 * @type string $order How to order retrieved comments. Default 'ASC'. 164 * } 159 165 * @return WP_Comment[]|int[]|int The approved comments, or number of comments if `$count` 160 166 * argument is true. … … 237 243 * 238 244 * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::__construct() 239 * for information on accepted arguments. Default empty .245 * for information on accepted arguments. Default empty string. 240 246 * @return WP_Comment[]|int[]|int List of comments or number of found comments if `$count` argument is true. 241 247 */ … … 450 456 * @param mixed $meta_value Optional. Metadata value. If provided, 451 457 * rows will only be removed that match the value. 452 * Must be serializable if non-scalar. Default empty .458 * Must be serializable if non-scalar. Default empty string. 453 459 * @return bool True on success, false on failure. 454 460 */ … … 466 472 * @param int $comment_id Comment ID. 467 473 * @param string $key Optional. The meta key to retrieve. By default, 468 * returns data for all keys. 474 * returns data for all keys. Default empty string. 469 475 * @param bool $single Optional. Whether to return a single value. 470 476 * This parameter has no effect if `$key` is not specified. … … 496 502 * @param mixed $prev_value Optional. Previous value to check before updating. 497 503 * If specified, only update existing metadata entries with 498 * this value. Otherwise, update all entries. Default empty .504 * this value. Otherwise, update all entries. Default empty string. 499 505 * @return int|bool Meta ID if the key didn't exist, true on successful update, 500 506 * false on failure or if the value passed to the function … … 986 992 * 987 993 * @param WP_Comment[] $comments Optional. Array of WP_Comment objects. Defaults to `$wp_query->comments`. 988 * @param int $per_page Optional. Comments per page. 989 * @param bool $threaded Optional. Control over flat or threaded comments. 994 * @param int $per_page Optional. Comments per page. Defaults to the value of `comments_per_page` 995 * query var, option of the same name, or 1 (in that order). 996 * @param bool $threaded Optional. Control over flat or threaded comments. Defaults to the value 997 * of `thread_comments` option. 990 998 * @return int Number of comment pages. 991 999 */ -
trunk/src/wp-includes/functions.php
r55344 r55398 1050 1050 * @param string $sep Optional. Argument separator; defaults to 'arg_separator.output'. 1051 1051 * Default null. 1052 * @param string $key Optional. Used to prefix key name. Default empty .1052 * @param string $key Optional. Used to prefix key name. Default empty string. 1053 1053 * @param bool $urlencode Optional. Whether to use urlencode() in the result. Default true. 1054 1054 * @return string The query string. … … 1439 1439 * @param int $code HTTP status code. 1440 1440 * @param string $description Optional. A custom description for the HTTP status. 1441 * Defaults to the result of get_status_header_desc() for the given code. 1441 1442 */ 1442 1443 function status_header( $code, $description = '' ) { … … 3001 3002 * @param string $filename File name or path. 3002 3003 * @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex. 3004 * Defaults to the result of get_allowed_mime_types(). 3003 3005 * @return array { 3004 3006 * Values for the extension and mime type. … … 3043 3045 * in a tmp directory). 3044 3046 * @param string[] $mimes Optional. Array of allowed mime types keyed by their file extension regex. 3047 * Defaults to the result of get_allowed_mime_types(). 3045 3048 * @return array { 3046 3049 * Values for the extension, mime type, and corrected filename. … … 3619 3622 * @param string|WP_Error $message Optional. Error message. If this is a WP_Error object, 3620 3623 * and not an Ajax or XML-RPC request, the error's messages are used. 3621 * Default empty .3624 * Default empty string. 3622 3625 * @param string|int $title Optional. Error title. If `$message` is a `WP_Error` object, 3623 3626 * error data with the key 'title' may be used to specify the title. 3624 * If `$title` is an integer, then it is treated as the response 3625 * code. Default empty.3627 * If `$title` is an integer, then it is treated as the response code. 3628 * Default empty string. 3626 3629 * @param string|array|int $args { 3627 3630 * Optional. Arguments to control behavior. If `$args` is an integer, then it is treated … … 3726 3729 * 3727 3730 * @param string|WP_Error $message Error message or WP_Error object. 3728 * @param string $title Optional. Error title. Default empty .3731 * @param string $title Optional. Error title. Default empty string. 3729 3732 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3730 3733 */ … … 3928 3931 * 3929 3932 * @param string $message Error message. 3930 * @param string $title Optional. Error title (unused). Default empty .3933 * @param string $title Optional. Error title (unused). Default empty string. 3931 3934 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3932 3935 */ … … 3970 3973 * 3971 3974 * @param string $message Error message. 3972 * @param string $title Optional. Error title. Default empty .3975 * @param string $title Optional. Error title. Default empty string. 3973 3976 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 3974 3977 */ … … 4008 4011 * 4009 4012 * @param string $message Error message. 4010 * @param string $title Optional. Error title. Default empty .4013 * @param string $title Optional. Error title. Default empty string. 4011 4014 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4012 4015 */ … … 4052 4055 * 4053 4056 * @param string $message Error message. 4054 * @param string $title Optional. Error title. Default empty .4057 * @param string $title Optional. Error title. Default empty string. 4055 4058 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4056 4059 */ … … 4082 4085 * 4083 4086 * @param string $message Error message. 4084 * @param string $title Optional. Error title. Default empty .4087 * @param string $title Optional. Error title. Default empty string. 4085 4088 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4086 4089 */ … … 4126 4129 * @access private 4127 4130 * 4128 * @param string $message Optional. Response to print. Default empty .4129 * @param string $title Optional. Error title (unused). Default empty .4131 * @param string $message Optional. Response to print. Default empty string. 4132 * @param string $title Optional. Error title (unused). Default empty string. 4130 4133 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4131 4134 */ … … 4152 4155 * 4153 4156 * @param string|WP_Error $message Error message or WP_Error object. 4154 * @param string $title Optional. Error title. Default empty .4157 * @param string $title Optional. Error title. Default empty string. 4155 4158 * @param string|array $args Optional. Arguments to control behavior. Default empty array. 4156 4159 * @return array { … … 4519 4522 * 4520 4523 * @type bool $associative Optional. When `true`, JSON objects will be returned as associative arrays. 4521 * When `false`, JSON objects will be returned as objects. 4524 * When `false`, JSON objects will be returned as objects. Default false. 4522 4525 * } 4523 4526 * … … 5371 5374 * @param string $function_name The function that was called. 5372 5375 * @param string $version The version of WordPress that deprecated the function. 5373 * @param string $replacement Optional. The function that should have been called. Default empty .5376 * @param string $replacement Optional. The function that should have been called. Default empty string. 5374 5377 */ 5375 5378 function _deprecated_function( $function_name, $version, $replacement = '' ) { … … 5557 5560 * @param string $version The version of WordPress that deprecated the file. 5558 5561 * @param string $replacement Optional. The file that should have been included based on ABSPATH. 5559 * Default empty .5560 * @param string $message Optional. A message regarding the change. Default empty .5562 * Default empty string. 5563 * @param string $message Optional. A message regarding the change. Default empty string. 5561 5564 */ 5562 5565 function _deprecated_file( $file, $version, $replacement = '', $message = '' ) { … … 5655 5658 * @param string $function_name The function that was called. 5656 5659 * @param string $version The version of WordPress that deprecated the argument used. 5657 * @param string $message Optional. A message regarding the change. Default empty .5660 * @param string $message Optional. A message regarding the change. Default empty string. 5658 5661 */ 5659 5662 function _deprecated_argument( $function_name, $version, $message = '' ) { … … 5743 5746 * @param string $hook The hook that was used. 5744 5747 * @param string $version The version of WordPress that deprecated the hook. 5745 * @param string $replacement Optional. The hook that should have been used. Default empty .5748 * @param string $replacement Optional. The hook that should have been used. Default empty string. 5746 5749 * @param string $message Optional. A message regarding the change. Default empty. 5747 5750 */ … … 5987 5990 * 5988 5991 * @param string $file File path. 5989 * @param string[] $allowed_files Optional. Array of allowed files. 5992 * @param string[] $allowed_files Optional. Array of allowed files. Default empty array. 5990 5993 * @return int 0 means nothing is wrong, greater than 0 means something was wrong. 5991 5994 */ … … 6105 6108 * 6106 6109 * @param bool $suspend Optional. Suspends additions if true, re-enables them if false. 6107 * @return bool The current suspend setting 6110 * Defaults to not changing the current setting. 6111 * @return bool The current suspend setting. 6108 6112 */ 6109 6113 function wp_suspend_cache_addition( $suspend = null ) { … … 6636 6640 * @param array $default_headers List of headers, in the format `array( 'HeaderKey' => 'Header Name' )`. 6637 6641 * @param string $context Optional. If specified adds filter hook {@see 'extra_$context_headers'}. 6638 * Default empty .6642 * Default empty string. 6639 6643 * @return string[] Array of file header values keyed by header name. 6640 6644 */ … … 6810 6814 * @param int $start The ID to start the loop check at. 6811 6815 * @param int $start_parent The parent_ID of $start to use instead of calling $callback( $start ). 6812 * Use null to always use $callback 6813 * @param array $callback_args Optional. Additional arguments to send to $callback. 6816 * Use null to always use $callback. 6817 * @param array $callback_args Optional. Additional arguments to send to $callback. Default empty array. 6814 6818 * @return array IDs of all members of loop. 6815 6819 */ … … 7814 7818 * 7815 7819 * @param string $type The type of data to be anonymized. 7816 * @param string $data Optional The data to be anonymized.7820 * @param string $data Optional. The data to be anonymized. Default empty string. 7817 7821 * @return string The anonymous data for the requested type. 7818 7822 */ … … 8247 8251 * @param string|string[] $exclude Optional. Full path of a subdirectory to exclude from the total, 8248 8252 * or array of paths. Expected without trailing slash(es). 8253 * Default null. 8249 8254 * @param int $max_execution_time Optional. Maximum time to run before giving up. In seconds. 8250 8255 * The timeout is global and is measured from the moment 8251 * WordPress started to load. 8256 * WordPress started to load. Defaults to the value of 8257 * `max_execution_time` PHP setting. 8252 8258 * @param array $directory_cache Optional. Array of cached directory paths. 8259 * Defaults to the value of `dirsize_cache` transient. 8253 8260 * @return int|false|null Size in bytes if a valid directory. False if not. Null if timeout. 8254 8261 */ -
trunk/src/wp-includes/meta.php
r54510 r55398 172 172 * @param mixed $prev_value Optional. Previous value to check before updating. 173 173 * If specified, only update existing metadata entries with 174 * this value. Otherwise, update all entries. Default empty .174 * this value. Otherwise, update all entries. Default empty string. 175 175 * @return int|bool The new meta field ID if a field with the given key didn't exist 176 176 * and was therefore added, true on successful update, … … 370 370 * (For backward compatibility, it is not possible to pass an empty string 371 371 * to delete those entries with an empty string for a value.) 372 * Default empty string. 372 373 * @param bool $delete_all Optional. If true, delete matching metadata entries for all objects, 373 374 * ignoring the specified object_id. Otherwise, only delete … … 559 560 * @param int $object_id ID of the object metadata is for. 560 561 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 561 * the specified object. Default empty .562 * the specified object. Default empty string. 562 563 * @param bool $single Optional. If true, return only the first value of the specified `$meta_key`. 563 564 * This parameter has no effect if `$meta_key` is not specified. Default false. … … 586 587 * @param int $object_id ID of the object metadata is for. 587 588 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 588 * the specified object. Default empty .589 * the specified object. Default empty string. 589 590 * @param bool $single Optional. If true, return only the first value of the specified `$meta_key`. 590 591 * This parameter has no effect if `$meta_key` is not specified. Default false. … … 1231 1232 * @param string $primary_table Primary database table name. 1232 1233 * @param string $primary_id_column Primary ID column name. 1233 * @param object $context Optional. The main query object 1234 * @param object $context Optional. The main query object. Default null. 1234 1235 * @return string[]|false { 1235 1236 * Array containing JOIN and WHERE SQL clauses to append to the main query, … … 1275 1276 * @param string $meta_key Metadata key. 1276 1277 * @param string $meta_type Optional. Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', 1277 * or any other object type with an associated meta table. Default empty .1278 * or any other object type with an associated meta table. Default empty string. 1278 1279 * @return bool Whether the meta key is considered protected. 1279 1280 */ … … 1305 1306 * @param string $object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', 1306 1307 * or any other object type with an associated meta table. 1307 * @param string $object_subtype Optional. The subtype of the object type. 1308 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1308 1309 * @return mixed Sanitized $meta_value. 1309 1310 */ … … 1581 1582 * or any other object type with an associated meta table. 1582 1583 * @param string $meta_key Metadata key. 1583 * @param string $object_subtype Optional. The subtype of the object type. 1584 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1584 1585 * @return bool True if the meta key is registered to the object type and, if provided, 1585 1586 * the object subtype. False if not. … … 1600 1601 * or any other object type with an associated meta table. 1601 1602 * @param string $meta_key Metadata key. 1602 * @param string $object_subtype Optional. The subtype of the object type. 1603 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1603 1604 * @return bool True if successful. False if the meta key was not registered. 1604 1605 */ … … 1649 1650 * @param string $object_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', 1650 1651 * or any other object type with an associated meta table. 1651 * @param string $object_subtype Optional. The subtype of the object type. 1652 * @param string $object_subtype Optional. The subtype of the object type. Default empty string. 1652 1653 * @return array[] List of registered metadata args, keyed by their meta keys. 1653 1654 */ -
trunk/src/wp-includes/ms-blogs.php
r55148 r55398 121 121 * 122 122 * @param int|string|array $fields Optional. A blog ID, a blog slug, or an array of fields to query against. 123 * If not specified the current blog ID is used.123 * Defaults to the current blog ID. 124 124 * @param bool $get_all Whether to retrieve all details or only the details in the blogs table. 125 125 * Default is true. … … 398 398 * @param int $id A blog ID. Can be null to refer to the current blog. 399 399 * @param string $option Name of option to add. Expected to not be SQL-escaped. 400 * @param mixed $value Option al. Optionvalue, can be anything. Expected to not be SQL-escaped.400 * @param mixed $value Option value, can be anything. Expected to not be SQL-escaped. 401 401 * @return bool True if the option was added, false otherwise. 402 402 */ -
trunk/src/wp-includes/ms-functions.php
r55161 r55398 331 331 * 332 332 * @param string $domain Website domain. 333 * @param string $path Optional. Not required for subdomain installations. 333 * @param string $path Optional. Not required for subdomain installations. Default '/'. 334 334 * @return int 0 if no blog found, otherwise the ID of the matching blog. 335 335 */ … … 607 607 * @param string $blog_title The blog title provided by the user. 608 608 * @param WP_User|string $user Optional. The user object to check against the new site name. 609 * Default empty string. 609 610 * @return array { 610 611 * Array of domain, path, blog name, blog title, user and error messages. … … 1355 1356 * the new site. Default empty array. 1356 1357 * @param int $network_id Optional. Network ID. Only relevant on multi-network installations. 1358 * Default 1. 1357 1359 * @return int|WP_Error Returns WP_Error object on failure, the new site ID on success. 1358 1360 */ … … 1540 1542 * @param string $domain The domain to be checked. 1541 1543 * @param string $path The path to be checked. 1542 * @param int $network_id Optional. Network ID. Relevant only on multi-network installations. 1544 * @param int $network_id Optional. Network ID. Only relevant on multi-network installations. 1545 * Default 1. 1543 1546 * @return int|null The site ID if the site name exists, null otherwise. 1544 1547 */ … … 1567 1570 * @param string $domain Domain to be checked. 1568 1571 * @param string $path Path to be checked. 1569 * @param int $network_id Network ID. Relevant onlyon multi-network installations.1572 * @param int $network_id Network ID. Only relevant on multi-network installations. 1570 1573 */ 1571 1574 return apply_filters( 'domain_exists', $result, $domain, $path, $network_id ); -
trunk/src/wp-includes/post-formats.php
r49693 r55398 42 42 * @since 3.1.0 43 43 * 44 * @param string|string[] $format Optional. The format or formats to check. 44 * @param string|string[] $format Optional. The format or formats to check. Default empty array. 45 45 * @param WP_Post|int|null $post Optional. The post to check. Defaults to the current post in the loop. 46 46 * @return bool True if the post has any of the given formats (or any format, if no format specified), -
trunk/src/wp-includes/revision.php
r55254 r55398 261 261 * 262 262 * @param int $post_id The post ID. 263 * @param int $user_id Optional. The post author ID. 263 * @param int $user_id Optional. The post author ID. Default 0. 264 264 * @return WP_Post|false The autosaved data or false on failure or when no autosave exists. 265 265 */ … … 344 344 * @param int|WP_Post|array|null $post Post ID, post object OR post array. 345 345 * @param bool $autosave Optional. Whether the revision is an autosave or not. 346 * Default false. 346 347 * @return int|WP_Error WP_Error or 0 if error, new revision ID if success. 347 348 */ … … 392 393 * correspond to a WP_Post object, an associative array, or a numeric array, 393 394 * respectively. Default OBJECT. 394 * @param string $filter Optional sanitization filter. See sanitize_post(). 395 * @param string $filter Optional sanitization filter. See sanitize_post(). Default 'raw'. 395 396 * @return WP_Post|array|null WP_Post (or array) on success, or null on failure. 396 397 */ -
trunk/src/wp-includes/rss.php
r55336 r55398 542 542 * 543 543 * @param string $url URL to retrieve 544 * @param array $headers Optional. Headers to send to the URL. 544 * @param array $headers Optional. Headers to send to the URL. Default empty string. 545 545 * @return Snoopy style response 546 546 */
Note: See TracChangeset
for help on using the changeset viewer.