Changeset 47461
- Timestamp:
- 03/16/2020 06:38:03 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-image-header.php
r47219 r47461 1245 1245 * 1246 1246 * @param array $object Attachment object. 1247 * @param string $cropped Cropped image URL.1247 * @param string $cropped File path to cropped image. 1248 1248 * @return int Attachment ID. 1249 1249 */ -
trunk/src/wp-admin/includes/image.php
r47287 r47461 534 534 * @param array $image_attachment An array of parameters to create the thumbnail. 535 535 * @param array $metadata Current attachment metadata. 536 * @param array $uploaded An array containing the thumbnail path and url. 536 * @param array $uploaded { 537 * Information about the newly-uploaded file. 538 * 539 * @type string $file Filename of the newly-uploaded file. 540 * @type string $url URL of the uploaded file. 541 * @type string $type File type. 542 * } 537 543 */ 538 544 $image_attachment = apply_filters( 'attachment_thumbnail_args', $image_attachment, $metadata, $uploaded ); -
trunk/src/wp-includes/formatting.php
r47400 r47461 3500 3500 3501 3501 /** 3502 * Given a date in the timezone of the site, returns that date in UTC timezone.3502 * Given a date in the timezone of the site, returns that date in UTC. 3503 3503 * 3504 3504 * Requires and returns a date in the Y-m-d H:i:s format. … … 3509 3509 * @param string $string The date to be converted, in the timezone of the site. 3510 3510 * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. 3511 * @return string Formatted version of the date, in UTC timezone.3511 * @return string Formatted version of the date, in UTC. 3512 3512 */ 3513 3513 function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) { … … 3522 3522 3523 3523 /** 3524 * Given a date in UTC timezone, returns that date in the timezone of the site.3524 * Given a date in UTC or GMT timezone, returns that date in the timezone of the site. 3525 3525 * 3526 3526 * Requires and returns a date in the Y-m-d H:i:s format. … … 3529 3529 * @since 1.2.0 3530 3530 * 3531 * @param string $string The date to be converted, in UTC timezone.3531 * @param string $string The date to be converted, in UTC or GMT timezone. 3532 3532 * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. 3533 3533 * @return string Formatted version of the date, in the site's timezone. … … 3544 3544 3545 3545 /** 3546 * Computes an offset in seconds from an iso8601 timezone.3546 * Given an ISO 8601 timezone, returns its UTC offset in seconds. 3547 3547 * 3548 3548 * @since 1.5.0 … … 3565 3565 3566 3566 /** 3567 * Converts an iso8601 (Ymd\TH:i:sO) date toMySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt].3567 * Given an ISO 8601 (Ymd\TH:i:sO) date, returns a MySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt]. 3568 3568 * 3569 3569 * @since 1.5.0 -
trunk/src/wp-includes/functions.php
r47454 r47461 2617 2617 * @param string $bits File content 2618 2618 * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. 2619 * @return array 2619 * @return array { 2620 * Information about the newly-uploaded file. 2621 * 2622 * @type string $file Filename of the newly-uploaded file. 2623 * @type string $url URL of the uploaded file. 2624 * @type string $type File type. 2625 * @type string|false $error Error message, if there has been an error. 2626 * } 2620 2627 */ 2621 2628 function wp_upload_bits( $name, $deprecated, $bits, $time = null ) { -
trunk/src/wp-includes/pluggable.php
r47398 r47461 2644 2644 2645 2645 /** 2646 * Filters whether to retrieve the avatar URLearly.2646 * Allows the HTML for a user's avatar to be returned early. 2647 2647 * 2648 2648 * Passing a non-null value will effectively short-circuit get_avatar(), passing … … 2652 2652 * 2653 2653 * @param string|null $avatar HTML for the user's avatar. Default null. 2654 * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash,2654 * @param mixed $id_or_email The avatar to retrieve. Accepts a user_id, Gravatar MD5 hash, 2655 2655 * user email, WP_User object, WP_Post object, or WP_Comment object. 2656 2656 * @param array $args Arguments passed to get_avatar_url(), after processing. … … 2703 2703 2704 2704 /** 2705 * Filters the avatar to retrieve.2705 * Filters the HTML for a user's avatar. 2706 2706 * 2707 2707 * @since 2.5.0 2708 2708 * @since 4.2.0 The `$args` parameter was added. 2709 2709 * 2710 * @param string $avatar <img> tagfor the user's avatar.2711 * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash,2710 * @param string $avatar HTML for the user's avatar. 2711 * @param mixed $id_or_email The avatar to retrieve. Accepts a user_id, Gravatar MD5 hash, 2712 2712 * user email, WP_User object, WP_Post object, or WP_Comment object. 2713 2713 * @param int $size Square avatar width and height in pixels to retrieve. 2714 2714 * @param string $default URL for the default image or a default type. Accepts '404', 'retro', 'monsterid', 2715 * 'wavatar', 'indenticon', 'mystery' (or 'mm', or 'mysteryman'), 'blank', or 'gravatar_default'.2715 * 'wavatar', 'indenticon', 'mystery', 'mm', 'mysteryman', 'blank', or 'gravatar_default'. 2716 2716 * Default is the value of the 'avatar_default' option, with a fallback of 'mystery'. 2717 2717 * @param string $alt Alternative text to use in the avatar image tag. Default empty. -
trunk/src/wp-includes/post.php
r47448 r47461 516 516 * @since 2.1.0 517 517 * 518 * @param string $file Path to attached file.519 * @param int $attachment_id Attachment ID.518 * @param string|false $file The file path to where the attached file should be, false otherwise. 519 * @param int $attachment_id Attachment ID. 520 520 */ 521 521 return apply_filters( 'get_attached_file', $file, $attachment_id );
Note: See TracChangeset
for help on using the changeset viewer.