Changeset 49597
- Timestamp:
- 11/14/2020 04:33:52 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.md
r49594 r49597 17 17 18 18 * macOS: `brew install node` 19 * Windows: `choco install node js`19 * Windows: `choco install node` 20 20 * Ubuntu: `apt install nodejs npm` 21 21 -
trunk/src/wp-includes/category-template.php
r49193 r49597 1154 1154 * @since 2.3.0 1155 1155 * 1156 * @param int $post_id Post ID.1156 * @param int|WP_Post $post_id Post ID or object. 1157 1157 * @return WP_Term[]|false|WP_Error Array of WP_Term objects on success, false if there are no terms 1158 1158 * or the post does not exist, WP_Error on failure. -
trunk/src/wp-includes/class-wp-http-streams.php
r48586 r49597 95 95 if ( $is_local ) { 96 96 /** 97 * Filters whether SSL should be verified for local requests.97 * Filters whether SSL should be verified for local HTTP API requests. 98 98 * 99 99 * @since 2.8.0 -
trunk/src/wp-includes/deprecated.php
r49566 r49597 1912 1912 // No thumb, no image. We'll look for a mime-related icon instead. 1913 1913 1914 /** This filter is documented in wp-includes/post.php */ 1914 1915 $icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' ); 1915 1916 $src_file = $icon_dir . '/' . wp_basename($src); -
trunk/src/wp-includes/general-template.php
r49355 r49597 2586 2586 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2587 2587 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2588 * @return string| false Date the current post was modified. False on failure.2588 * @return string|int|false Date the current post was modified. False on failure. 2589 2589 */ 2590 2590 function get_the_modified_date( $format = '', $post = null ) { … … 2606 2606 * @since 4.6.0 Added the `$post` parameter. 2607 2607 * 2608 * @param string| false $the_time The formatted date or false if no post is found.2609 * @param string $format PHP date format.2610 * @param WP_Post|null $post WP_Post object or null if no post is found.2608 * @param string|int|false $the_time The formatted date or false if no post is found. 2609 * @param string $format PHP date format. 2610 * @param WP_Post|null $post WP_Post object or null if no post is found. 2611 2611 */ 2612 2612 return apply_filters( 'get_the_modified_date', $the_time, $format, $post ); … … 2832 2832 * Defaults to the 'time_format' option. 2833 2833 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2834 * @return string| false Formatted date string or Unix timestamp. False on failure.2834 * @return string|int|false Formatted date string or Unix timestamp. False on failure. 2835 2835 */ 2836 2836 function get_the_modified_time( $format = '', $post = null ) { … … 2852 2852 * @since 4.6.0 Added the `$post` parameter. 2853 2853 * 2854 * @param string| false $the_time The formatted time or false if no post is found.2855 * @param string $format Format to use for retrieving the time the post2856 * was modified. Accepts 'G', 'U', or PHP date format.2857 * @param WP_Post|null $post WP_Post object or null if no post is found.2854 * @param string|int|false $the_time The formatted time or false if no post is found. 2855 * @param string $format Format to use for retrieving the time the post 2856 * was modified. Accepts 'G', 'U', or PHP date format. 2857 * @param WP_Post|null $post WP_Post object or null if no post is found. 2858 2858 */ 2859 2859 return apply_filters( 'get_the_modified_time', $the_time, $format, $post ); … … 2909 2909 * @since 2.8.0 2910 2910 * 2911 * @param string $time The formatted time.2912 * @param string $format Format to use for retrieving the time the post was modified.2913 * Accepts 'G', 'U', or PHP date format. Default 'U'.2914 * @param bool $gmt Whether to retrieve the GMT time. Default false.2911 * @param string|int $time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2912 * @param string $format Format to use for retrieving the time the post was modified. 2913 * Accepts 'G', 'U', or PHP date format. Default 'U'. 2914 * @param bool $gmt Whether to retrieve the GMT time. Default false. 2915 2915 */ 2916 2916 return apply_filters( 'get_post_modified_time', $time, $format, $gmt ); -
trunk/src/wp-includes/media.php
r49539 r49597 43 43 * @since 2.5.0 44 44 * 45 * @global int 45 * @global int $content_width 46 46 * 47 47 * @param int $width Width of the image in pixels. … … 1082 1082 * @since 2.8.0 1083 1083 * 1084 * @param array$attr Array of attribute values for the image markup, keyed by attribute name.1084 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 1085 1085 * See wp_get_attachment_image(). 1086 1086 * @param WP_Post $attachment Image attachment post. … … 1110 1110 * an array of width and height values in pixels (in that order). 1111 1111 * @param bool $icon Whether the image should be treated as an icon. 1112 * @param array$attr Array of attribute values for the image markup, keyed by attribute name.1112 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 1113 1113 * See wp_get_attachment_image(). 1114 1114 */ … … 1238 1238 * @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'. 1239 1239 * @param int $attachment_id Optional. The image attachment ID. Default 0. 1240 * @return string| boolThe 'srcset' attribute value. False on error or when only one source exists.1240 * @return string|false The 'srcset' attribute value. False on error or when only one source exists. 1241 1241 */ 1242 1242 function wp_calculate_image_srcset( $size_array, $image_src, $image_meta, $attachment_id = 0 ) { … … 1477 1477 * @param int $attachment_id Optional. Image attachment ID. Either `$image_meta` or `$attachment_id` 1478 1478 * is needed when using the image size name as argument for `$size`. Default 0. 1479 * @return string| boolA valid source size value for use in a 'sizes' attribute or false.1479 * @return string|false A valid source size value for use in a 'sizes' attribute or false. 1480 1480 */ 1481 1481 function wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, $attachment_id = 0 ) { -
trunk/src/wp-includes/ms-site.php
r49193 r49597 861 861 * @since MU (3.0.0) 862 862 * 863 * @param string $ uploads['basedir']Uploads path without subdirectory. @see wp_upload_dir()864 * @param int $site_id 863 * @param string $basedir Uploads path without subdirectory. @see wp_upload_dir() 864 * @param int $site_id The site ID. 865 865 */ 866 866 $dir = apply_filters( 'wpmu_delete_blog_upload_dir', $uploads['basedir'], $site->id ); -
trunk/src/wp-includes/taxonomy.php
r49539 r49597 2049 2049 * @param string|string[] $taxonomies The taxonomy names to retrieve terms from. 2050 2050 * @param array|string $args See WP_Term_Query::__construct() for supported arguments. 2051 * @return array|WP_Error The requested term dataor empty array if no terms found.2052 * WP_Error if any of the taxonomies don't exist.2051 * @return WP_Term[]|WP_Error Array of terms or empty array if no terms found. 2052 * WP_Error if any of the taxonomies don't exist. 2053 2053 */ 2054 2054 function wp_get_object_terms( $object_ids, $taxonomies, $args = array() ) { … … 2126 2126 * @since 4.2.0 2127 2127 * 2128 * @param array$terms Array of terms for the given object or objects.2129 * @param int[] $object_ids Array of object IDs for which terms were retrieved.2130 * @param string[] $taxonomies Array of taxonomy names from which terms were retrieved.2131 * @param array $args Array of arguments for retrieving terms for the given2132 * object(s). See wp_get_object_terms() for details.2128 * @param WP_Term[] $terms Array of terms for the given object or objects. 2129 * @param int[] $object_ids Array of object IDs for which terms were retrieved. 2130 * @param string[] $taxonomies Array of taxonomy names from which terms were retrieved. 2131 * @param array $args Array of arguments for retrieving terms for the given 2132 * object(s). See wp_get_object_terms() for details. 2133 2133 */ 2134 2134 $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args ); … … 2145 2145 * @since 2.8.0 2146 2146 * 2147 * @param array$terms Array of terms for the given object or objects.2148 * @param int[] $object_ids Array of object IDs for which terms were retrieved.2149 * @param string [] $taxonomies Arrayof taxonomy names from which terms were retrieved.2150 * @param array $args Array of arguments for retrieving terms for the given2151 * object(s). See wp_get_object_terms() for details.2147 * @param WP_Term[] $terms Array of terms for the given object or objects. 2148 * @param string $object_ids Comma separated list if object IDs for which terms were retrieved. 2149 * @param string $taxonomies SQL fragment of taxonomy names from which terms were retrieved. 2150 * @param array $args Array of arguments for retrieving terms for the given 2151 * object(s). See wp_get_object_terms() for details. 2152 2152 */ 2153 2153 return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args );
Note: See TracChangeset
for help on using the changeset viewer.