Changeset 61649 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 02/15/2026 11:17:55 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/general-template.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r61644 r61649 2717 2717 * @since 3.0.0 2718 2718 * 2719 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option.2720 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.2719 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2720 * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default current post. 2721 2721 * @return string|int|false Date the current post was written. False on failure. 2722 2722 */ … … 2783 2783 * @since 4.6.0 Added the `$post` parameter. 2784 2784 * 2785 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option.2786 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.2785 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2786 * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default current post. 2787 2787 * @return string|int|false Date the current post was modified. False on failure. 2788 2788 */ … … 2839 2839 * @since 1.5.0 2840 2840 * 2841 * @param string $format Optional. Format to use for retrieving the time the post2842 * was written. Accepts 'G', 'U', or PHP date format.2843 * Defaults to the 'time_format' option.2844 * @param int|WP_Post $post Post ID or post object. Default is global `$post` object.2841 * @param string $format Optional. Format to use for retrieving the time the post 2842 * was written. Accepts 'G', 'U', or PHP date format. 2843 * Defaults to the 'time_format' option. 2844 * @param int|WP_Post|null $post Post ID or post object. Default is global `$post` object. 2845 2845 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2846 2846 * False on failure. … … 2875 2875 * @since 2.0.0 2876 2876 * 2877 * @param string $format Optional. Format to use for retrieving the time the post2878 * was written. Accepts 'G', 'U', or PHP date format. Default 'U'.2879 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false.2880 * @param int|WP_Post $post Post ID or post object. Default is global `$post` object.2881 * @param bool $translate Whether to translate the time string. Default false.2877 * @param string $format Optional. Format to use for retrieving the time the post 2878 * was written. Accepts 'G', 'U', or PHP date format. Default 'U'. 2879 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. 2880 * @param int|WP_Post|null $post Post ID or post object. Default is global `$post` object. 2881 * @param bool $translate Whether to translate the time string. Default false. 2882 2882 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 2883 2883 * False on failure. … … 2939 2939 * @since 5.3.0 2940 2940 * 2941 * @param int|WP_Post $post Optional. Post ID or post object. Default is global `$post` object.2942 * @param string $field Optional. Published or modified time to use from database. Accepts 'date' or 'modified'.2943 * Default 'date'.2944 * @param string $source Optional. Local or UTC time to use from database. Accepts 'local' or 'gmt'.2945 * Default 'local'.2941 * @param int|WP_Post|null $post Optional. Post ID or post object. Default is global `$post` object. 2942 * @param string $field Optional. Published or modified time to use from database. Accepts 'date' or 'modified'. 2943 * Default 'date'. 2944 * @param string $source Optional. Local or UTC time to use from database. Accepts 'local' or 'gmt'. 2945 * Default 'local'. 2946 2946 * @return DateTimeImmutable|false Time object on success, false on failure. 2947 2947 */ … … 2984 2984 * @since 5.3.0 2985 2985 * 2986 * @param int|WP_Post $post Optional. Post ID or post object. Default is global `$post` object.2987 * @param string $field Optional. Published or modified time to use from database. Accepts 'date' or 'modified'.2988 * Default 'date'.2986 * @param int|WP_Post|null $post Optional. Post ID or post object. Default is global `$post` object. 2987 * @param string $field Optional. Published or modified time to use from database. Accepts 'date' or 'modified'. 2988 * Default 'date'. 2989 2989 * @return int|false Unix timestamp on success, false on failure. 2990 2990 */ … … 3027 3027 * @since 4.6.0 Added the `$post` parameter. 3028 3028 * 3029 * @param string $format Optional. Format to use for retrieving the time the post3030 * was modified. Accepts 'G', 'U', or PHP date format.3031 * Defaults to the 'time_format' option.3032 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post.3029 * @param string $format Optional. Format to use for retrieving the time the post 3030 * was modified. Accepts 'G', 'U', or PHP date format. 3031 * Defaults to the 'time_format' option. 3032 * @param int|WP_Post|null $post Optional. Post ID or WP_Post object. Default current post. 3033 3033 * @return string|int|false Formatted date string or Unix timestamp. False on failure. 3034 3034 */ … … 3064 3064 * @since 2.0.0 3065 3065 * 3066 * @param string $format Optional. Format to use for retrieving the time the post3067 * was modified. Accepts 'G', 'U', or PHP date format. Default 'U'.3068 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false.3069 * @param int|WP_Post $post Post ID or post object. Default is global `$post` object.3070 * @param bool $translate Whether to translate the time string. Default false.3066 * @param string $format Optional. Format to use for retrieving the time the post 3067 * was modified. Accepts 'G', 'U', or PHP date format. Default 'U'. 3068 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. 3069 * @param int|WP_Post|null $post Post ID or post object. Default is global `$post` object. 3070 * @param bool $translate Whether to translate the time string. Default false. 3071 3071 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. 3072 3072 * False on failure.
Note: See TracChangeset
for help on using the changeset viewer.