Changeset 48197
- Timestamp:
- 06/28/2020 11:47:45 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r47848 r48197 62 62 * 63 63 * @param int $blog_id Site ID. 64 * @param bool $drop True if site's database tables should be dropped. Default isfalse.64 * @param bool $drop True if site's database tables should be dropped. Default false. 65 65 */ 66 66 function wpmu_delete_blog( $blog_id, $drop = false ) { -
trunk/src/wp-includes/bookmark.php
r48104 r48197 17 17 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 18 18 * an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT. 19 * @param string $filter Optional , default is'raw'.19 * @param string $filter Optional. How to sanitize bookmark fields. Default 'raw'. 20 20 * @return array|object|null Type returned depends on $output value. 21 21 */ -
trunk/src/wp-includes/category-template.php
r48104 r48197 72 72 * @since 0.71 73 73 * 74 * @param int $id Optional , default to current post ID. Thepost ID.74 * @param int $id Optional. The post ID. Defaults to current post ID. 75 75 * @return WP_Term[] Array of WP_Term objects, one for each category assigned to the post. 76 76 */ -
trunk/src/wp-includes/class-wp-customize-setting.php
r48067 r48197 547 547 * @since 3.4.0 548 548 * 549 * @param mixed $default A default value which is used as a fallback. Default isnull.549 * @param mixed $default A default value which is used as a fallback. Default null. 550 550 * @return mixed The default value on failure, otherwise the sanitized and validated value. 551 551 */ … … 849 849 * @param $root 850 850 * @param $keys 851 * @param bool $create Default isfalse.851 * @param bool $create Default false. 852 852 * @return array|void Keys are 'root', 'node', and 'key'. 853 853 */ … … 930 930 * @param $root 931 931 * @param $keys 932 * @param mixed $default A default value which is used as a fallback. Default isnull.932 * @param mixed $default A default value which is used as a fallback. Default null. 933 933 * @return mixed The requested value or the default value. 934 934 */ -
trunk/src/wp-includes/class-wp-http-encoding.php
r48067 r48197 24 24 * @since 2.8.0 25 25 * 26 * @param string $raw String to compress. 27 * @param int $level Optional, default is 9. Compression level, 9 is highest. 28 * @param string $supports Optional, not used. When implemented it will choose the right compression based on what the server supports. 26 * @param string $raw String to compress. 27 * @param int $level Optional. Compression level, 9 is highest. Default 9. 28 * @param string $supports Optional, not used. When implemented it will choose 29 * the right compression based on what the server supports. 29 30 * @return string|false False on failure. 30 31 */ … … 44 45 * 45 46 * @param string $compressed String to decompress. 46 * @param int $lengthThe optional length of the compressed data.47 * @param int $length The optional length of the compressed data. 47 48 * @return string|bool False on failure. 48 49 */ -
trunk/src/wp-includes/class-wp-rewrite.php
r48109 r48197 1229 1229 * 1230 1230 * @param string $permalink_structure The permalink structure to generate rules. 1231 * @param bool $walk_dirs Optional, default is false. Whether to create list of directories to walk over. 1231 * @param bool $walk_dirs Optional. Whether to create list of directories to walk over. 1232 * Default false. 1232 1233 * @return array 1233 1234 */ -
trunk/src/wp-includes/class-wp-roles.php
r47219 r48197 202 202 * 203 203 * @param string $role Role name. 204 * @param string $cap Capability name. 205 * @param bool $grant Optional, default is true. Whether role is capable of performing capability. 204 * @param string $cap Capability name. 205 * @param bool $grant Optional. Whether role is capable of performing capability. 206 * Default true. 206 207 */ 207 208 public function add_cap( $role, $cap, $grant = true ) { … … 222 223 * 223 224 * @param string $role Role name. 224 * @param string $cap Capability name.225 * @param string $cap Capability name. 225 226 */ 226 227 public function remove_cap( $role, $cap ) { -
trunk/src/wp-includes/deprecated.php
r48175 r48197 1243 1243 * @see get_term_children() 1244 1244 * 1245 * @param int $id Category ID to retrieve children. 1246 * @param string $before Optional. Prepend before category term ID. 1247 * @param string $after Optional, default is empty string. Append after category term ID. 1248 * @param array $visited Optional. Category Term IDs that have already been added. 1245 * @param int $id Category ID to retrieve children. 1246 * @param string $before Optional. Prepend before category term ID. Default '/'. 1247 * @param string $after Optional. Append after category term ID. Default empty string. 1248 * @param array $visited Optional. Category Term IDs that have already been added. 1249 * Default empty array. 1249 1250 * @return string 1250 1251 */ … … 1835 1836 * @see wp_get_attachment_link() 1836 1837 * 1837 * @param int $idOptional. Post ID.1838 * @param bool $fullsize Optional, default is false. Whether to use full size image.1838 * @param int $id Optional. Post ID. 1839 * @param bool $fullsize Optional. Whether to use full size image. Default false. 1839 1840 * @param array $max_dims Optional. Max image dimensions. 1840 * @param bool $permalink Optional , default is false. Whether to include permalink to image.1841 * @param bool $permalink Optional. Whether to include permalink to image. Default false. 1841 1842 * @return string 1842 1843 */ … … 1865 1866 * @see wp_get_attachment_image_src() 1866 1867 * 1867 * @param int $idOptional. Post ID.1868 * @param bool $fullsize Optional , default to false. Whether to have full image.1868 * @param int $id Optional. Post ID. 1869 * @param bool $fullsize Optional. Whether to have full image. Default false. 1869 1870 * @return array Icon URL and full path to file, respectively. 1870 1871 */ … … 1906 1907 * @see wp_get_attachment_image() 1907 1908 * 1908 * @param int $idOptional. Post ID.1909 * @param bool $fullsize Optional, default to false. Whether to have full size image.1909 * @param int $id Optional. Post ID. 1910 * @param bool $fullsize Optional. Whether to have full size image. Default false. 1910 1911 * @param array $max_dims Optional. Dimensions of image. 1911 1912 * @return string|false HTML content. … … 1962 1963 * @see wp_get_attachment_image() 1963 1964 * 1964 * @param int $idOptional. Post ID.1965 * @param bool $fullsize Optional, default to false. Whether to have full size image.1965 * @param int $id Optional. Post ID. 1966 * @param bool $fullsize Optional. Whether to have full size image. Default false. 1966 1967 * @param array $max_dims Optional. Dimensions of image. 1967 1968 * @return string|false … … 2387 2388 * @see add_theme_support() 2388 2389 * 2389 * @param bool $add Optional , default is true. Add or remove links. Defaults totrue.2390 * @param bool $add Optional. Add or remove links. Default true. 2390 2391 */ 2391 2392 function automatic_feed_links( $add = true ) { … … 2406 2407 * 2407 2408 * @param string $field User meta field. 2408 * @param false|int $user Optional. User ID to retrieve the field for. Default false (current user).2409 * @param false|int $user Optional. User ID to retrieve the field for. Default false (current user). 2409 2410 * @return string The author's field from the current author's DB object. 2410 2411 */ … … 2624 2625 * @deprecated 3.3.0 2625 2626 * 2626 * @param object|array $user The User Object or Array2627 * @param string $context Optional, default is 'display'. How to sanitize user fields.2628 * @return object|array The now sanitized User Object or Array (will be the same type as $user)2627 * @param object|array $user The user object or array. 2628 * @param string $context Optional. How to sanitize user fields. Default 'display'. 2629 * @return object|array The now sanitized user object or array (will be the same type as $user). 2629 2630 */ 2630 2631 function sanitize_user_object($user, $context = 'display') { … … 2661 2662 * @deprecated 3.3.0 2662 2663 * 2663 * @param string $title Optional. Link title format. 2664 * @param bool $in_same_cat Optional. Whether link should be in a same category. 2665 * @param string $excluded_categories Optional. Excluded categories IDs. 2666 * @param bool $start Optional, default is true. Whether to display link to first or last post. 2664 * @param string $title Optional. Link title format. Default '%title'. 2665 * @param bool $in_same_cat Optional. Whether link should be in a same category. 2666 * Default false. 2667 * @param string $excluded_categories Optional. Excluded categories IDs. Default empty. 2668 * @param bool $start Optional. Whether to display link to first or last post. 2669 * Default true. 2667 2670 * @return string 2668 2671 */ … … 3216 3219 * @see wp_get_image_editor() 3217 3220 * 3218 * @param string $file Image file path.3219 * @param int $max_wMaximum width to resize to.3220 * @param int $max_hMaximum height to resize to.3221 * @param bool $crop Optional. Whether to crop image or resize.3222 * @param string $suffix Optional. File suffix.3223 * @param string $dest_path Optional. New image file path.3224 * @param int $jpeg_quality Optional, default is 90. Image quality percentage.3221 * @param string $file Image file path. 3222 * @param int $max_w Maximum width to resize to. 3223 * @param int $max_h Maximum height to resize to. 3224 * @param bool $crop Optional. Whether to crop image or resize. Default false. 3225 * @param string $suffix Optional. File suffix. Default null. 3226 * @param string $dest_path Optional. New image file path. Default null. 3227 * @param int $jpeg_quality Optional. Image quality percentage. Default 90. 3225 3228 * @return mixed WP_Error on failure. String with new destination path. 3226 3229 */ -
trunk/src/wp-includes/general-template.php
r48110 r48197 1203 1203 * @global WP_Locale $wp_locale WordPress date and time locale object. 1204 1204 * 1205 * @param string $sep Optional , default is '»'. How to separate the various items1206 * within the page title.1207 * @param bool $display Optional , default is true. Whether to display or retrieve title.1205 * @param string $sep Optional. How to separate the various items within the page title. 1206 * Default '»'. 1207 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1208 1208 * @param string $seplocation Optional. Location of the separator ('left' or 'right'). 1209 1209 * @return string|null String on retrieve, null when displaying. … … 1349 1349 * 1350 1350 * @param string $prefix Optional. What to display before the title. 1351 * @param bool $display Optional , default is true. Whether to display or retrieve title.1351 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1352 1352 * @return string|void Title when retrieving. 1353 1353 */ … … 1384 1384 * 1385 1385 * @param string $prefix Optional. What to display before the title. 1386 * @param bool $display Optional , default is true. Whether to display or retrieve title.1386 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1387 1387 * @return string|void Title when retrieving, null when displaying or failure. 1388 1388 */ … … 1426 1426 * 1427 1427 * @param string $prefix Optional. What to display before the title. 1428 * @param bool $display Optional , default is true. Whether to display or retrieve title.1428 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1429 1429 * @return string|void Title when retrieving. 1430 1430 */ … … 1443 1443 * 1444 1444 * @param string $prefix Optional. What to display before the title. 1445 * @param bool $display Optional , default is true. Whether to display or retrieve title.1445 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1446 1446 * @return string|void Title when retrieving. 1447 1447 */ … … 1460 1460 * 1461 1461 * @param string $prefix Optional. What to display before the title. 1462 * @param bool $display Optional , default is true. Whether to display or retrieve title.1462 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1463 1463 * @return string|void Title when retrieving. 1464 1464 */ … … 1525 1525 * 1526 1526 * @param string $prefix Optional. What to display before the title. 1527 * @param bool $display Optional , default is true. Whether to display or retrieve title.1527 * @param bool $display Optional. Whether to display or retrieve title. Default true. 1528 1528 * @return string|void Title when retrieving. 1529 1529 */ … … 1753 1753 * @param string $url URL to archive. 1754 1754 * @param string $text Archive text description. 1755 * @param string $format Optional , default is 'html'. Can be 'link', 'option', 'html', or custom.1755 * @param string $format Optional. Can be 'link', 'option', 'html', or custom. Default 'html'. 1756 1756 * @param string $before Optional. Content to prepend to the description. Default empty. 1757 1757 * @param string $after Optional. Content to append to the description. Default empty. … … 2081 2081 * @global array $posts 2082 2082 * 2083 * @param bool $initial Optional , default is true. Use initial calendar names.2084 * @param bool $ echo Optional, default is true. Set to false for return.2083 * @param bool $initial Optional. Whether to use initial calendar names. Default true. 2084 * @param bool $display Optional. Whether to display or return the calendar. Default true. 2085 2085 * @return void|string Void if `$echo` argument is true, calendar HTML if `$echo` is false. 2086 2086 */ … … 2375 2375 * @param string $before Optional. Output before the date. 2376 2376 * @param string $after Optional. Output after the date. 2377 * @param bool $echo Optional , default is display. Whether to echo the date or return it.2377 * @param bool $echo Optional. Whether to echo the date or return it. Default true. 2378 2378 * @return string|void String if retrieving. 2379 2379 */ … … 2454 2454 * @param string $before Optional. Output before the date. 2455 2455 * @param string $after Optional. Output after the date. 2456 * @param bool $echo Optional , default is display. Whether to echo the date or return it.2456 * @param bool $echo Optional. Whether to echo the date or return it. Default true. 2457 2457 * @return string|void String if retrieving. 2458 2458 */ -
trunk/src/wp-includes/link-template.php
r48185 r48197 258 258 * 259 259 * @param int|WP_Post $id Optional. Post ID or post object. Default is the global `$post`. 260 * @param bool $leavename Optional , defaults to false. Whether to keep post name. Default false.261 * @param bool $sample Optional , defaults to false. Is it a sample permalink. Default false.260 * @param bool $leavename Optional. Whether to keep post name. Default false. 261 * @param bool $sample Optional. Is it a sample permalink. Default false. 262 262 * @return string|WP_Error The post permalink. 263 263 */ -
trunk/src/wp-includes/post-formats.php
r47808 r48197 12 12 * @since 3.1.0 13 13 * 14 * @param int|object|null $post Post ID or post object. Optional, default is the current post fromthe loop.14 * @param int|object|null $post Optional. Post ID or post object. Defaults to the current post in the loop. 15 15 * @return string|false The format if successful. False otherwise. 16 16 */ … … 43 43 * 44 44 * @param string|array $format Optional. The format or formats to check. 45 * @param WP_Post|int|null $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop. 46 * @return bool True if the post has any of the given formats (or any format, if no format specified), false otherwise. 45 * @param WP_Post|int|null $post Optional. The post to check. Defaults to the current post in the loop. 46 * @return bool True if the post has any of the given formats (or any format, if no format specified), 47 * false otherwise. 47 48 */ 48 49 function has_post_format( $format = array(), $post = null ) { … … 65 66 * @param int|object $post The post for which to assign a format. 66 67 * @param string $format A format to assign. Use an empty string or array to remove all formats from the post. 67 * @return array|WP_Error|false WP_Error on error. Array of affected term IDs on success.68 * @return array|WP_Error|false Array of affected term IDs on success. WP_Error on error. 68 69 */ 69 70 function set_post_format( $post, $format ) { -
trunk/src/wp-includes/post-template.php
r48114 r48197 239 239 * 240 240 * @param string $more_link_text Optional. Content for when there is more text. 241 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default isfalse.241 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false. 242 242 */ 243 243 function the_content( $more_link_text = null, $strip_teaser = false ) { … … 270 270 * 271 271 * @param string $more_link_text Optional. Content for when there is more text. 272 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default isfalse.273 * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default isnull.272 * @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false. 273 * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default null. 274 274 * @return string 275 275 */ … … 1567 1567 * 1568 1568 * @param int|WP_Post $id Optional. Post ID or post object. 1569 * @param bool $fullsize Optional , default is false. Whether to use full size.1569 * @param bool $fullsize Optional. Whether to use full size. Default false. 1570 1570 * @param bool $deprecated Deprecated. Not used. 1571 * @param bool $permalink Optional , default is false. Whether to include permalink.1571 * @param bool $permalink Optional. Whether to include permalink. Default false. 1572 1572 */ 1573 1573 function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) { … … 1593 1593 * of width and height values in pixels (in that order). 1594 1594 * Default 'thumbnail'. 1595 * @param bool $permalink Optional ,Whether to add permalink to image. Default false.1595 * @param bool $permalink Optional. Whether to add permalink to image. Default false. 1596 1596 * @param bool $icon Optional. Whether the attachment is an icon. Default false. 1597 1597 * @param string|false $text Optional. Link text to use. Activated by passing a string, false otherwise. … … 1805 1805 * 1806 1806 * @param int|object $revision Revision ID or revision object. 1807 * @param bool $link Optional , default is true. Link to revisions's page?1807 * @param bool $link Optional. Whether to link to revision's page. Default true. 1808 1808 * @return string|false i18n formatted datetimestamp or localized 'Current Revision'. 1809 1809 */ … … 1846 1846 * 1847 1847 * @param int|object $revision Revision ID or revision object. 1848 * @param bool $link Optional , default is true. Link to revisions's page?1848 * @param bool $link Optional. Whether to link to revision's page. Default true. 1849 1849 * @return string|false gravatar, user, i18n formatted datetimestamp or localized 'Current Revision'. 1850 1850 */ -
trunk/src/wp-includes/taxonomy.php
r48187 r48197 812 812 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 813 813 * a WP_Term object, an associative array, or a numeric array, respectively. Default OBJECT. 814 * @param string $filter Optional , default is raw or no WordPress defined filter will applied.814 * @param string $filter Optional. How to sanitize term fields. Default 'raw'. 815 815 * @return WP_Term|array|WP_Error|null Object of the type specified by `$output` on success. When `$output` is 'OBJECT', 816 816 * a WP_Term instance is returned. If taxonomy does not exist, a WP_Error is … … 923 923 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to 924 924 * a WP_Term object, an associative array, or a numeric array, respectively. Default OBJECT. 925 * @param string $filter Optional , default is raw or no WordPress defined filter will applied.925 * @param string $filter Optional. How to sanitize term fields. Default 'raw'. 926 926 * @return WP_Term|array|false WP_Term instance (or array) on success. Will return false if `$taxonomy` does not exist 927 927 * or `$term` was not found. … … 1045 1045 * @param int|WP_Term $term Term ID or object. 1046 1046 * @param string $taxonomy Optional. Taxonomy Name. Default empty. 1047 * @param string $context Optional, default is display. Look at sanitize_term_field() for available options. 1047 * @param string $context Optional. How to sanitize term fields. Look at sanitize_term_field() for available options. 1048 * Default 'display'. 1048 1049 * @return string|int|null|WP_Error Will return an empty string if $term is not an object or if $field is not set in $term. 1049 1050 */ -
trunk/src/wp-includes/widgets.php
r48121 r48197 664 664 * @global array $wp_registered_widgets Registered widgets. 665 665 * 666 * @param int|string $index Optional , default is 1. Index, name or ID of dynamic sidebar.666 * @param int|string $index Optional. Index, name or ID of dynamic sidebar. Default 1. 667 667 * @return bool True, if widget sidebar was found and called. False if not found or not called. 668 668 */
Note: See TracChangeset
for help on using the changeset viewer.