Changeset 53299
- Timestamp:
- 04/28/2022 09:44:12 AM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r53084 r53299 1662 1662 * 1663 1663 * @param int|WP_Post $post_id ID or object of the post being edited. 1664 * @return array|false Array of the lock time and user ID. False if the post does not exist, or 1665 * there is no current user. 1664 * @return array|false { 1665 * Array of the lock time and user ID. False if the post does not exist, or there 1666 * is no current user. 1667 * 1668 * @type int $0 The current time as a Unix timestamp. 1669 * @type int $1 The ID of the current user. 1670 * } 1666 1671 */ 1667 1672 function wp_set_post_lock( $post_id ) { -
trunk/src/wp-includes/block-editor.php
r53259 r53299 110 110 * @param WP_Block_Editor_Context $block_editor_context The current block editor context. 111 111 * 112 * @return bool| arrayArray of block type slugs, or boolean to enable/disable all.112 * @return bool|string[] Array of block type slugs, or boolean to enable/disable all. 113 113 */ 114 114 function get_allowed_block_types( $block_editor_context ) { … … 120 120 * @since 5.8.0 121 121 * 122 * @param bool| array$allowed_block_types Array of block type slugs, or boolean to enable/disable all.122 * @param bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all. 123 123 * Default true (all registered block types supported). 124 124 * @param WP_Block_Editor_Context $block_editor_context The current block editor context. … … 135 135 * @deprecated 5.8.0 Use the {@see 'allowed_block_types_all'} filter instead. 136 136 * 137 * @param bool| array$allowed_block_types Array of block type slugs, or boolean to enable/disable all.138 * Default true (all registered block types supported)139 * @param WP_Post $post The post resource data.137 * @param bool|string[] $allowed_block_types Array of block type slugs, or boolean to enable/disable all. 138 * Default true (all registered block types supported) 139 * @param WP_Post $post The post resource data. 140 140 */ 141 141 $allowed_block_types = apply_filters_deprecated( 'allowed_block_types', array( $allowed_block_types, $post ), '5.8.0', 'allowed_block_types_all' ); -
trunk/src/wp-includes/class-wp-block-pattern-categories-registry.php
r52219 r53299 16 16 * 17 17 * @since 5.5.0 18 * @var array 18 * @var array[] 19 19 */ 20 20 private $registered_categories = array(); … … 104 104 * @since 5.5.0 105 105 * 106 * @return array Array of arrays containing the registered pattern categories properties.106 * @return array[] Array of arrays containing the registered pattern categories properties. 107 107 */ 108 108 public function get_all_registered() { -
trunk/src/wp-includes/class-wp-block-patterns-registry.php
r52943 r53299 18 18 * 19 19 * @since 5.5.0 20 * @var array 20 * @var array[] 21 21 */ 22 22 private $registered_patterns = array(); … … 146 146 * @since 5.5.0 147 147 * 148 * @return array Array of arrays containing the registered block patterns properties,149 * and per style.148 * @return array[] Array of arrays containing the registered block patterns properties, 149 * and per style. 150 150 */ 151 151 public function get_all_registered() { -
trunk/src/wp-includes/class-wp-comment-query.php
r53291 r53299 94 94 * 95 95 * @since 4.0.0 96 * @var array96 * @var int[]|WP_Comment[] 97 97 */ 98 98 public $comments; … … 375 375 * @global wpdb $wpdb WordPress database abstraction object. 376 376 * 377 * @return int| arrayList of comments or number of found comments if `$count` argument is true.377 * @return int|int[]|WP_Comment[] List of comments or number of found comments if `$count` argument is true. 378 378 */ 379 379 public function get_comments() { -
trunk/src/wp-includes/class-wp-editor.php
r52978 r53299 1752 1752 * 1753 1753 * @param array $args Optional. Accepts 'pagenum' and 's' (search) arguments. 1754 * @return array|false Results. 1754 * @return array|false $results { 1755 * An array of associative arrays of query results, false if there are none. 1756 * 1757 * @type array ...$0 { 1758 * @type int $ID Post ID. 1759 * @type string $title The trimmed, escaped post title. 1760 * @type string $permalink Post permalink. 1761 * @type string $info A 'Y/m/d'-formatted date for 'post' post type, 1762 * the 'singular_name' post type label otherwise. 1763 * } 1764 * } 1755 1765 */ 1756 1766 public static function wp_link_query( $args = array() ) { -
trunk/src/wp-includes/class-wp-error.php
r49116 r53299 104 104 * 105 105 * @param string|int $code Optional. Retrieve messages matching code, if exists. 106 * @return arrayError strings on success, or empty array if there are none.106 * @return string[] Error strings on success, or empty array if there are none. 107 107 */ 108 108 public function get_error_messages( $code = '' ) { -
trunk/src/wp-includes/class-wp-term-query.php
r53280 r53299 700 700 * @since 3.1.0 701 701 * 702 * @param string[] $clauses Array of query SQL clauses. 702 * @param string[] $clauses { 703 * Associative array of the clauses for the query. 704 * 705 * @type string $fields The SELECT clause of the query. 706 * @type string $join The JOIN clause of the query. 707 * @type string $where The WHERE clause of the query. 708 * @type string $distinct The DISTINCT clause of the query. 709 * @type string $orderby The ORDER BY clause of the query. 710 * @type string $order The ORDER clause of the query. 711 * @type string $limits The LIMIT clause of the query. 712 * } 703 713 * @param string[] $taxonomies An array of taxonomy names. 704 714 * @param array $args An array of term query arguments. -
trunk/src/wp-includes/comment.php
r53265 r53299 157 157 * @param int $post_id The ID of the post. 158 158 * @param array $args Optional. See WP_Comment_Query::__construct() for information on accepted arguments. 159 * @return int|arrayThe approved comments, or number of comments if `$count`160 * argument is true.159 * @return WP_Comment[]|int[]|int The approved comments, or number of comments if `$count` 160 * argument is true. 161 161 */ 162 162 function get_approved_comments( $post_id, $args = array() ) { … … 238 238 * @param string|array $args Optional. Array or string of arguments. See WP_Comment_Query::__construct() 239 239 * for information on accepted arguments. Default empty. 240 * @return int|arrayList of comments or number of found comments if `$count` argument is true.240 * @return WP_Comment[]|int[]|int List of comments or number of found comments if `$count` argument is true. 241 241 */ 242 242 function get_comments( $args = '' ) { -
trunk/src/wp-includes/functions.php
r53243 r53299 6919 6919 6920 6920 /** 6921 * Return a comma-separated stringof functions that have been called to get6921 * Returns a comma-separated string or array of functions that have been called to get 6922 6922 * to the current point in code. 6923 6923 * … … 6930 6930 * @param int $skip_frames Optional. A number of stack frames to skip - useful for unwinding 6931 6931 * back to the source of the issue. Default 0. 6932 * @param bool $pretty Optional. Whether or not you want a comma separated string or raw6933 * array returned. Default true.6932 * @param bool $pretty Optional. Whether you want a comma separated string instead of 6933 * the raw array returned. Default true. 6934 6934 * @return string|array Either a string containing a reversed comma separated trace or an array 6935 6935 * of individual calls. -
trunk/src/wp-includes/pluggable.php
r52799 r53299 128 128 * @global wpdb $wpdb WordPress database abstraction object. 129 129 * 130 * @param array$user_ids User ID numbers list130 * @param int[] $user_ids User ID numbers list 131 131 */ 132 132 function cache_users( $user_ids ) { -
trunk/src/wp-includes/wp-db.php
r53131 r53299 1852 1852 * 1853 1853 * @param string $host The DB_HOST setting to parse. 1854 * @return array|false Array containing the host, the port, the socket and 1855 * whether it is an IPv6 address, in that order. 1856 * False if $host couldn't be parsed. 1854 * @return array|false { 1855 * Array containing the host, the port, the socket and 1856 * whether it is an IPv6 address, in that order. 1857 * False if the host couldn't be parsed. 1858 * 1859 * @type string $0 Host name. 1860 * @type string|null $1 Port. 1861 * @type string|null $2 Socket. 1862 * @type bool $3 Whether it is an IPv6 address. 1863 * } 1857 1864 */ 1858 1865 public function parse_db_host( $host ) { … … 3044 3051 * @param string $table Table name. 3045 3052 * @param string $column Column name. 3046 * @return array|false|WP_Error array( 'length' => (int), 'type' => 'byte' | 'char' ). 3047 * False if the column has no length (for example, numeric column). 3048 * WP_Error object if there was an error. 3053 * @return array|false|WP_Error { 3054 * Array of column length information, false if the column has no length (for 3055 * example, numeric column), WP_Error object if there was an error. 3056 * 3057 * @type int $length The column length. 3058 * @type string $type One of 'byte' or 'char'. 3049 3059 */ 3050 3060 public function get_col_length( $table, $column ) {
Note: See TracChangeset
for help on using the changeset viewer.