Changeset 48929
- Timestamp:
- 09/01/2020 12:41:19 AM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r48918 r48929 545 545 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. 546 546 * 547 * @param string $format Optional. The format of the date. Default user's setting.547 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 548 548 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to get the date. 549 549 * Default current comment. … … 563 563 * 564 564 * @param string|int $date Formatted date string or Unix timestamp. 565 * @param string $format The format of the date.565 * @param string $format PHP date format. 566 566 * @param WP_Comment $comment The comment object. 567 567 */ … … 575 575 * @since 4.4.0 Added the ability for `$comment_ID` to also accept a WP_Comment object. 576 576 * 577 * @param string $format Optional. The format of the date. Default user's settings.577 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 578 578 * @param int|WP_Comment $comment_ID WP_Comment or ID of the comment for which to print the date. 579 579 * Default current comment. … … 1034 1034 * @since 1.5.0 1035 1035 * 1036 * @param string $format Optional. The format of the time. Default user's settings.1036 * @param string $format Optional. PHP date format. Defaults to the 'time_format' option. 1037 1037 * @param bool $gmt Optional. Whether to use the GMT date. Default false. 1038 1038 * @param bool $translate Optional. Whether to translate the time (for use in feeds). … … 1055 1055 * 1056 1056 * @param string|int $date The comment time, formatted as a date string or Unix timestamp. 1057 * @param string $format Date format.1057 * @param string $format PHP date format. 1058 1058 * @param bool $gmt Whether the GMT date is in use. 1059 1059 * @param bool $translate Whether the time is translated. … … 1068 1068 * @since 0.71 1069 1069 * 1070 * @param string $format Optional. The format of the time. Default user's settings.1070 * @param string $format Optional. PHP date format. Defaults to the 'time_format' option. 1071 1071 */ 1072 1072 function comment_time( $format = '' ) { -
trunk/src/wp-includes/general-template.php
r48918 r48929 2471 2471 * @global string $previousday The day of the previous post in the loop. 2472 2472 * 2473 * @param string $format Optional. PHP date format defaults to the date_format option if not specified.2474 * @param string $before Optional. Output before the date. 2475 * @param string $after Optional. Output after the date. 2473 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2474 * @param string $before Optional. Output before the date. Default empty. 2475 * @param string $after Optional. Output after the date. Default empty. 2476 2476 * @param bool $echo Optional. Whether to echo the date or return it. Default true. 2477 2477 * @return string|void String if retrieving. … … 2493 2493 * 2494 2494 * @param string $the_date The formatted date string. 2495 * @param string $format PHP date format. Defaults to 'date_format' option 2496 * if not specified. 2495 * @param string $format PHP date format. 2497 2496 * @param string $before HTML output before the date. 2498 2497 * @param string $after HTML output after the date. … … 2515 2514 * @since 3.0.0 2516 2515 * 2517 * @param string $format Optional. PHP date format defaults to the date_format option if not specified.2516 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2518 2517 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2519 2518 * @return string|false Date the current post was written. False on failure. … … 2536 2535 * 2537 2536 * @param string $the_date The formatted date. 2538 * @param string $format PHP date format. Defaults to 'date_format' option 2539 * if not specified. 2537 * @param string $format PHP date format. 2540 2538 * @param int|WP_Post $post The post object or ID. 2541 2539 */ … … 2548 2546 * @since 2.1.0 2549 2547 * 2550 * @param string $format Optional. PHP date format defaults to the date_format option if not specified.2551 * @param string $before Optional. Output before the date. 2552 * @param string $after Optional. Output after the date. 2548 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2549 * @param string $before Optional. Output before the date. Default empty. 2550 * @param string $after Optional. Output after the date. Default empty. 2553 2551 * @param bool $echo Optional. Whether to echo the date or return it. Default true. 2554 2552 * @return string|void String if retrieving. … … 2562 2560 * @since 2.1.0 2563 2561 * 2564 * @param string $the_modified_date The last modified date. 2565 * @param string $format PHP date format. Defaults to 'date_format' option 2566 * if not specified. 2567 * @param string $before HTML output before the date. 2568 * @param string $after HTML output after the date. 2562 * @param string|false $the_modified_date The last modified date or false if no post is found. 2563 * @param string $format PHP date format. 2564 * @param string $before HTML output before the date. 2565 * @param string $after HTML output after the date. 2569 2566 */ 2570 2567 $the_modified_date = apply_filters( 'the_modified_date', $the_modified_date, $format, $before, $after ); … … 2584 2581 * @since 4.6.0 Added the `$post` parameter. 2585 2582 * 2586 * @param string $format Optional. PHP date format defaults to the date_format option if not specified.2583 * @param string $format Optional. PHP date format. Defaults to the 'date_format' option. 2587 2584 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2588 2585 * @return string|false Date the current post was modified. False on failure. … … 2606 2603 * @since 4.6.0 Added the `$post` parameter. 2607 2604 * 2608 * @param string|bool $the_time The formatted date or false if no post is found. 2609 * @param string $format PHP date format. Defaults to value specified in 2610 * 'date_format' option. 2605 * @param string|false $the_time The formatted date or false if no post is found. 2606 * @param string $format PHP date format. 2611 2607 * @param WP_Post|null $post WP_Post object or null if no post is found. 2612 2608 */ … … 2619 2615 * @since 0.71 2620 2616 * 2621 * @param string $format Either 'G', 'U', or PHP date format. 2617 * @param string $format Optional. Format to use for retrieving the time the post 2618 * was written. Accepts 'G', 'U', or PHP date format. 2619 * Defaults to the 'time_format' option. 2622 2620 */ 2623 2621 function the_time( $format = '' ) { … … 2628 2626 * 2629 2627 * @param string $get_the_time The formatted time. 2630 * @param string $format The time format. Accepts 'G', 'U',2631 * or PHP date format.2628 * @param string $format Format to use for retrieving the time the post 2629 * was written. Accepts 'G', 'U', or PHP date format. 2632 2630 */ 2633 2631 echo apply_filters( 'the_time', get_the_time( $format ), $format ); … … 2640 2638 * 2641 2639 * @param string $format Optional. Format to use for retrieving the time the post 2642 * was written. Either 'G', 'U', or PHP date format defaults2643 * to the value specified in the time_format option. Default empty.2640 * was written. Accepts 'G', 'U', or PHP date format. 2641 * Defaults to the 'time_format' option. 2644 2642 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. 2645 2643 * @return string|int|false Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. … … 2663 2661 * 2664 2662 * @param string $the_time The formatted time. 2665 * @param string $format Format to use for retrieving the time the post was written. 2666 * Accepts 'G', 'U', or PHP date format value specified 2667 * in 'time_format' option. Default empty. 2663 * @param string $format Format to use for retrieving the time the post 2664 * was written. Accepts 'G', 'U', or PHP date format. 2668 2665 * @param int|WP_Post $post WP_Post object or ID. 2669 2666 */ … … 2677 2674 * 2678 2675 * @param string $format Optional. Format to use for retrieving the time the post 2679 * was written. Either'G', 'U', or PHP date format. Default 'U'.2676 * was written. Accepts 'G', 'U', or PHP date format. Default 'U'. 2680 2677 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. 2681 2678 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. … … 2805 2802 * @since 2.0.0 2806 2803 * 2807 * @param string $format Optional. Either 'G', 'U', or PHP date format defaults 2808 * to the value specified in the time_format option. 2804 * @param string $format Optional. Format to use for retrieving the time the post 2805 * was modified. Accepts 'G', 'U', or PHP date format. 2806 * Defaults to the 'time_format' option. 2809 2807 */ 2810 2808 function the_modified_time( $format = '' ) { … … 2814 2812 * @since 2.0.0 2815 2813 * 2816 * @param string $get_the_modified_time The formatted time. 2817 * @param string $format The time format. Accepts 'G', 'U', 2818 * or PHP date format. Defaults to value 2819 * specified in 'time_format' option. 2814 * @param string|false $get_the_modified_time The formatted time or false if no post is found. 2815 * @param string $format Format to use for retrieving the time the post 2816 * was modified. Accepts 'G', 'U', or PHP date format. 2820 2817 */ 2821 2818 echo apply_filters( 'the_modified_time', get_the_modified_time( $format ), $format ); … … 2829 2826 * 2830 2827 * @param string $format Optional. Format to use for retrieving the time the post 2831 * was modified. Either 'G', 'U', or PHP date format defaults2832 * to the value specified in the time_format option. Default empty.2828 * was modified. Accepts 'G', 'U', or PHP date format. 2829 * Defaults to the 'time_format' option. 2833 2830 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2834 2831 * @return string|false Formatted date string or Unix timestamp. False on failure. … … 2852 2849 * @since 4.6.0 Added the `$post` parameter. 2853 2850 * 2854 * @param string|bool $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 was 2856 * written. Accepts 'G', 'U', or PHP date format. Defaults 2857 * to value specified in 'time_format' option. 2851 * @param string|false $the_time The formatted time or false if no post is found. 2852 * @param string $format Format to use for retrieving the time the post 2853 * was modified. Accepts 'G', 'U', or PHP date format. 2858 2854 * @param WP_Post|null $post WP_Post object or null if no post is found. 2859 2855 */ … … 2867 2863 * 2868 2864 * @param string $format Optional. Format to use for retrieving the time the post 2869 * was modified. Either'G', 'U', or PHP date format. Default 'U'.2865 * was modified. Accepts 'G', 'U', or PHP date format. Default 'U'. 2870 2866 * @param bool $gmt Optional. Whether to retrieve the GMT time. Default false. 2871 2867 * @param int|WP_Post $post WP_Post object or ID. Default is global `$post` object. … … 2958 2954 * @global string $previousweekday The day of the previous post in the loop. 2959 2955 * 2960 * @param string $before Optional. Output before the date. 2961 * @param string $after Optional. Output after the date. 2956 * @param string $before Optional. Output before the date. Default empty. 2957 * @param string $after Optional. Output after the date. Default empty. 2962 2958 */ 2963 2959 function the_weekday_date( $before = '', $after = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.