Changeset 47060 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 01/11/2020 06:30:58 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r46823 r47060 197 197 * accessibility. Default empty. 198 198 * } 199 * @return string|void String when the $echo paramis false.199 * @return void|string Void if 'echo' argument is true, search form HTML if 'echo' is false. 200 200 */ 201 201 function get_search_form( $args = array() ) { … … 301 301 } 302 302 303 if ( isset( $args['echo'] ) &&$args['echo'] ) {303 if ( $args['echo'] ) { 304 304 echo $result; 305 305 } else { … … 427 427 * Provides a simple login form for use anywhere within WordPress. 428 428 * 429 * The login form atHTML is echoed by default. Pass a false value for `$echo` to return it instead.429 * The login form HTML is echoed by default. Pass a false value for `$echo` to return it instead. 430 430 * 431 431 * @since 3.0.0 … … 453 453 * 454 454 * } 455 * @return string|void String when retrieving.455 * @return void|string Void if 'echo' argument is true, login form HTML if 'echo' is false. 456 456 */ 457 457 function wp_login_form( $args = array() ) { … … 1807 1807 * @type string $w Week. Default current week. 1808 1808 * } 1809 * @return string|void String when retrieving.1809 * @return void|string Void if 'echo' argument is true, archive links if 'echo' is false. 1810 1810 */ 1811 1811 function wp_get_archives( $args = '' ) { … … 2020 2020 } 2021 2021 } 2022 2022 2023 if ( $parsed_args['echo'] ) { 2023 2024 echo $output; … … 2390 2391 * @param string $d Optional. PHP date format defaults to the date_format option if not specified. 2391 2392 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2392 * @return false|stringDate the current post was written. False on failure.2393 * @return string|false Date the current post was written. False on failure. 2393 2394 */ 2394 2395 function get_the_date( $d = '', $post = null ) { … … 2461 2462 * @param string $d Optional. PHP date format defaults to the date_format option if not specified. 2462 2463 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2463 * @return false|stringDate the current post was modified. False on failure.2464 * @return string|false Date the current post was modified. False on failure. 2464 2465 */ 2465 2466 function get_the_modified_date( $d = '', $post = null ) { … … 2706 2707 * to the value specified in the time_format option. Default empty. 2707 2708 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default current post. 2708 * @return false|stringFormatted date string or Unix timestamp. False on failure.2709 * @return string|false Formatted date string or Unix timestamp. False on failure. 2709 2710 */ 2710 2711 function get_the_modified_time( $d = '', $post = null ) { … … 4071 4072 * @type string $after_page_number A string to append after the page number. Default empty. 4072 4073 * } 4073 * @return string|array|void String of page links or array of page links. 4074 * @return string|array|void String of page links or array of page links, depending on 'type' argument. 4075 * Void if total number of pages is less than 2. 4074 4076 */ 4075 4077 function paginate_links( $args = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.