Changeset 46661
- Timestamp:
- 11/05/2019 09:25:53 PM (5 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r46152 r46661 130 130 * Default empty. 131 131 * } 132 * @return arrayList of bookmark row objects.132 * @return object[] List of bookmark row objects. 133 133 */ 134 134 function get_bookmarks( $args = '' ) { -
trunk/src/wp-includes/capabilities.php
r46596 r46661 34 34 * @param int $user_id User ID. 35 35 * @param mixed ...$args Optional further parameters, typically starting with an object ID. 36 * @return arrayActual capabilities for meta capability.36 * @return string[] Actual capabilities for meta capability. 37 37 */ 38 38 function map_meta_cap( $cap, $user_id, ...$args ) { … … 839 839 * @global array $super_admins 840 840 * 841 * @return array List of super admin logins841 * @return string[] List of super admin logins. 842 842 */ 843 843 function get_super_admins() { -
trunk/src/wp-includes/class-requests.php
r46586 r46661 790 790 * 791 791 * @param array $array Dictionary of header values 792 * @return arrayList of headers792 * @return string[] List of headers 793 793 */ 794 794 public static function flatten($array) { … … 806 806 * @deprecated Misspelling of {@see Requests::flatten} 807 807 * @param array $array Dictionary of header values 808 * @return arrayList of headers808 * @return string[] List of headers 809 809 */ 810 810 public static function flattern($array) { -
trunk/src/wp-includes/class-wp-comment.php
r46586 r46661 252 252 * 'none' to disable `ORDER BY` clause. 253 253 * } 254 * @return arrayArray of `WP_Comment` objects.254 * @return WP_Comment[] Array of `WP_Comment` objects. 255 255 */ 256 256 public function get_children( $args = array() ) { -
trunk/src/wp-includes/class-wp-customize-manager.php
r46637 r46661 437 437 * @since 3.4.0 438 438 * 439 * @param mixed $ajax_message Ajax return440 * @param mixed $message UI message439 * @param string|WP_Error $ajax_message Ajax return. 440 * @param string $message Optional. UI message. 441 441 */ 442 442 protected function wp_die( $ajax_message, $message = null ) { -
trunk/src/wp-includes/class-wp-embed.php
r45590 r46661 174 174 if ( false !== $return ) { 175 175 /** 176 * Filters the returned embed handler.176 * Filters the returned embed HTML. 177 177 * 178 178 * @since 2.9.0 … … 180 180 * @see WP_Embed::shortcode() 181 181 * 182 * @param mixed $return The shortcode callback function to call.183 * @param string $url The attemptedembed URL.184 * @param array $attr An array of shortcode attributes.182 * @param string|false $return The HTML result of the shortcode, or false on failure. 183 * @param string $url The embed URL. 184 * @param array $attr An array of shortcode attributes. 185 185 */ 186 186 return apply_filters( 'embed_handler_html', $return, $url, $attr ); … … 249 249 * @see WP_Embed::shortcode() 250 250 * 251 * @param mixed$cache The cached HTML result, stored in post meta.252 * @param string $url The attempted embed URL.253 * @param array $attr An array of shortcode attributes.254 * @param int $post_ID Post ID.251 * @param string|false $cache The cached HTML result, stored in post meta. 252 * @param string $url The attempted embed URL. 253 * @param array $attr An array of shortcode attributes. 254 * @param int $post_ID Post ID. 255 255 */ 256 256 return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID ); -
trunk/src/wp-includes/class-wp-image-editor.php
r46202 r46661 173 173 * @since 3.5.0 174 174 * 175 * @return array {'width'=>int, 'height'=>int} 175 * @return array { 176 * Dimensions of the image. 177 * 178 * @type int $width The image width. 179 * @type int $height The image height. 180 * } 176 181 */ 177 182 public function get_size() { -
trunk/src/wp-includes/class-wp-query.php
r46474 r46661 1403 1403 * 1404 1404 * @param string[] $terms Array of terms to check. 1405 * @return arrayTerms that are not stopwords.1405 * @return string[] Terms that are not stopwords. 1406 1406 */ 1407 1407 protected function parse_search_terms( $terms ) { … … 1439 1439 * @since 3.7.0 1440 1440 * 1441 * @return arrayStopwords.1441 * @return string[] Stopwords. 1442 1442 */ 1443 1443 protected function get_search_stopwords() { … … 3586 3586 * @since 3.1.0 3587 3587 * 3588 * @param mixed$post_types Optional. Post type or array of posts types to check against.3588 * @param string|string[] $post_types Optional. Post type or array of posts types to check against. 3589 3589 * @return bool 3590 3590 */ -
trunk/src/wp-includes/class-wp-recovery-mode-email-service.php
r46586 r46661 307 307 * 308 308 * @param array $extension The extension that caused the error. 309 * @return array An associat edarray of debug information.309 * @return array An associative array of debug information. 310 310 */ 311 311 private function get_debug( $extension ) { -
trunk/src/wp-includes/class-wp-rewrite.php
r46596 r46661 464 464 * @since 1.5.0 465 465 * 466 * @return arrayPage rewrite rules.466 * @return string[] Page rewrite rules. 467 467 */ 468 468 public function page_rewrite_rules() { … … 1251 1251 * @since 1.5.0 1252 1252 * 1253 * @return array An associate array of matches and queries.1253 * @return string[] An associative array of matches and queries. 1254 1254 */ 1255 1255 public function rewrite_rules() { … … 1456 1456 * @since 1.5.0 1457 1457 * 1458 * @return array Rewrite rules.1458 * @return string[] Array of rewrite rules keyed by their regex pattern. 1459 1459 */ 1460 1460 public function wp_rewrite_rules() { -
trunk/src/wp-includes/class-wp-theme.php
r46278 r46661 1157 1157 * @param int $depth Optional. How deep to search for files. Defaults to a flat scan (0 depth). -1 depth is infinite. 1158 1158 * @param bool $search_parent Optional. Whether to return parent files. Defaults to false. 1159 * @return arrayArray of files, keyed by the path to the file relative to the theme's directory, with the values1160 * being absolute paths.1159 * @return string[] Array of files, keyed by the path to the file relative to the theme's directory, with the values 1160 * being absolute paths. 1161 1161 */ 1162 1162 public function get_files( $type = null, $depth = 0, $search_parent = false ) { … … 1175 1175 * @since 4.7.0 1176 1176 * 1177 * @return arrayArray of page templates, keyed by filename and post type,1177 * @return string Array of page templates, keyed by filename and post type, 1178 1178 * with the value of the translated header name. 1179 1179 */ … … 1234 1234 * @param string $post_type Optional. Post type to get the templates for. Default 'page'. 1235 1235 * If a post is provided, its post type is used. 1236 * @return array Array of page templates, keyed by filename, with the value of the translated headername.1236 * @return string[] Array of template header names keyed by the template file name. 1237 1237 */ 1238 1238 public function get_page_templates( $post = null, $post_type = 'page' ) { … … 1249 1249 * @since 4.9.6 1250 1250 * 1251 * @param string[] $post_templates Array of page templates. Keys are filenames, 1252 * values are translated names. 1251 * @param string[] $post_templates Array of template header names keyed by the template file name. 1253 1252 * @param WP_Theme $this The theme object. 1254 1253 * @param WP_Post|null $post The post being edited, provided for context, or null. … … 1266 1265 * @since 4.7.0 Added the `$post_type` parameter. 1267 1266 * 1268 * @param string[] $post_templates Array of page templates. Keys are filenames, 1269 * values are translated names. 1267 * @param string[] $post_templates Array of template header names keyed by the template file name. 1270 1268 * @param WP_Theme $this The theme object. 1271 1269 * @param WP_Post|null $post The post being edited, provided for context, or null. … … 1290 1288 * returned path for the found files, particularly when this function 1291 1289 * recurses to lower depths. Default empty. 1292 * @return array|false Array of files, keyed by the path to the file relative to the `$path` directory prepended1293 * with `$relative_path`, with the values being absolute paths. False otherwise.1290 * @return string[]|false Array of files, keyed by the path to the file relative to the `$path` directory prepended 1291 * with `$relative_path`, with the values being absolute paths. False otherwise. 1294 1292 */ 1295 1293 private static function scandir( $path, $extensions = null, $depth = 0, $relative_path = '' ) { -
trunk/src/wp-includes/class-wp-user.php
r46451 r46661 865 865 * @since 4.9.0 866 866 * 867 * @return array User capabilities array. 867 * @return bool[] List of capabilities keyed by the capability name, 868 * e.g. array( 'edit_posts' => true, 'delete_posts' => false ). 868 869 */ 869 870 private function get_caps_data() { -
trunk/src/wp-includes/class.wp-dependencies.php
r45590 r46661 26 26 27 27 /** 28 * An array of queued _WP_Dependency handleobjects.28 * An array of handles of queued objects. 29 29 * 30 30 * @since 2.6.8 31 * @var array31 * @var string[] 32 32 */ 33 33 public $queue = array(); 34 34 35 35 /** 36 * An array of _WP_Dependency handleobjects to queue.37 * 38 * @since 2.6.0 39 * @var array36 * An array of handles of objects to queue. 37 * 38 * @since 2.6.0 39 * @var string[] 40 40 */ 41 41 public $to_do = array(); 42 42 43 43 /** 44 * An array of _WP_Dependency handleobjects already queued.45 * 46 * @since 2.6.0 47 * @var array44 * An array of handles of objects already queued. 45 * 46 * @since 2.6.0 47 * @var string[] 48 48 */ 49 49 public $done = array(); … … 84 84 * @since 2.8.0 Added the `$group` parameter. 85 85 * 86 * @param mixed $handles Optional. Items to be processed: Process queue (false), process item (string), process items (array of strings).87 * @param mixed $groupGroup level: level (int), no groups (false).88 * @return array Handles of items that have been processed.86 * @param mixed $handles Optional. Items to be processed: Process queue (false), process item (string), process items (array of strings). 87 * @param int|false $group Optional. Group level: level (int), no groups (false). 88 * @return string[] Array of handles of items that have been processed. 89 89 */ 90 90 public function do_items( $handles = false, $group = false ) { … … 137 137 * @since 2.8.0 Added the `$group` parameter. 138 138 * 139 * @param mixed$handles Item handle and argument (string) or item handles and arguments (array of strings).140 * @param bool $recursion Internal flag that function is calling itself.141 * @param int|false $group Group level: (int) level, (false) no groups.139 * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings). 140 * @param bool $recursion Internal flag that function is calling itself. 141 * @param int|false $group Group level: (int) level, (false) no groups. 142 142 * @return bool True on success, false on failure. 143 143 */ … … 271 271 * @since 2.6.0 Moved from `WP_Scripts`. 272 272 * 273 * @param mixed$handles Item handle and argument (string) or item handles and arguments (array of strings).273 * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings). 274 274 * @return void 275 275 */ … … 291 291 * @since 2.6.0 Moved from `WP_Scripts`. 292 292 * 293 * @param mixed$handles Item handle and argument (string) or item handles and arguments (array of strings).293 * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings). 294 294 */ 295 295 public function enqueue( $handles ) { … … 314 314 * @since 2.6.0 Moved from `WP_Scripts`. 315 315 * 316 * @param mixed$handles Item handle and argument (string) or item handles and arguments (array of strings).316 * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings). 317 317 */ 318 318 public function dequeue( $handles ) { -
trunk/src/wp-includes/class.wp-scripts.php
r46287 r46661 176 176 * @since 2.8.0 Added the `$group` parameter. 177 177 * 178 * @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints179 * that script, (array of strings) prints those scripts. Default false.180 * @param int 181 * Default false.182 * @return array Scripts that have been printed.178 * @param mixed $handles Optional. Scripts to be printed. (void) prints queue, (string) prints 179 * that script, (array of strings) prints those scripts. Default false. 180 * @param int|false $group Optional. If scripts were queued in groups prints this group number. 181 * Default false. 182 * @return string[] Handles of scripts that have been printed. 183 183 */ 184 184 public function print_scripts( $handles = false, $group = false ) { … … 628 628 * @see WP_Dependencies::do_items() 629 629 * 630 * @return arrayHandles of items that have been processed.630 * @return string[] Handles of items that have been processed. 631 631 */ 632 632 public function do_head_items() { … … 642 642 * @see WP_Dependencies::do_items() 643 643 * 644 * @return arrayHandles of items that have been processed.644 * @return string[] Handles of items that have been processed. 645 645 */ 646 646 public function do_footer_items() { -
trunk/src/wp-includes/class.wp-styles.php
r46287 r46661 357 357 * @see WP_Dependencies::all_deps() 358 358 * 359 * @param mixed$handles Item handle and argument (string) or item handles and arguments (array of strings).360 * @param bool $recursion Internal flag that function is calling itself.361 * @param int|false $group Group level: (int) level, (false) no groups.359 * @param string|string[] $handles Item handle and argument (string) or item handles and arguments (array of strings). 360 * @param bool $recursion Internal flag that function is calling itself. 361 * @param int|false $group Group level: (int) level, (false) no groups. 362 362 * @return bool True on success, false on failure. 363 363 */ … … 438 438 * @see WP_Dependencies::do_items() 439 439 * 440 * @return arrayHandles of items that have been processed.440 * @return string[] Handles of items that have been processed. 441 441 */ 442 442 public function do_footer_items() {
Note: See TracChangeset
for help on using the changeset viewer.