Changeset 53000 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 03/28/2022 10:23:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r52406 r53000 2556 2556 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2557 2557 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2558 * @return string| false Date the current post was written. False on failure.2558 * @return string|int|false Date the current post was written. False on failure. 2559 2559 */ 2560 2560 function get_the_date( $format = '', $post = null ) { … … 2574 2574 * @since 3.0.0 2575 2575 * 2576 * @param string $the_date The formatted date.2576 * @param string|int $the_date Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2577 2577 * @param string $format PHP date format. 2578 * @param int|WP_Post $post The post object or ID.2578 * @param WP_Post $post The post object. 2579 2579 */ 2580 2580 return apply_filters( 'get_the_date', $the_date, $format, $post ); … … 2700 2700 * @since 1.5.0 2701 2701 * 2702 * @param string $the_time The formatted time.2702 * @param string|int $the_time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2703 2703 * @param string $format Format to use for retrieving the time the post 2704 2704 * was written. Accepts 'G', 'U', or PHP date format. 2705 * @param int|WP_Post $post WP_Post object or ID.2705 * @param WP_Post $post Post object. 2706 2706 */ 2707 2707 return apply_filters( 'get_the_time', $the_time, $format, $post ); … … 2757 2757 * @since 2.6.0 2758 2758 * 2759 * @param string $time The formatted time.2760 * @param string $format Format to use for retrieving the time the post was written.2761 * Accepts 'G', 'U', or PHP date format. Default 'U'.2762 * @param bool $gmt Whether to retrieve the GMT time. Default false.2759 * @param string|int $time Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2760 * @param string $format Format to use for retrieving the time the post was written. 2761 * Accepts 'G', 'U', or PHP date format. 2762 * @param bool $gmt Whether to retrieve the GMT time. 2763 2763 */ 2764 2764 return apply_filters( 'get_post_time', $time, $format, $gmt );
Note: See TracChangeset
for help on using the changeset viewer.