Changeset 47060 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 01/11/2020 06:30:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r46610 r47060 38 38 * @param string $after Optional. Markup to append to the title. Default empty. 39 39 * @param bool $echo Optional. Whether to echo or return the title. Default true for echo. 40 * @return string|void Current post title if $echois false.40 * @return void|string Void if `$echo` argument is true, current post title if `$echo` is false. 41 41 */ 42 42 function the_title( $before = '', $after = '', $echo = true ) { … … 76 76 * @type WP_Post $post Current post object to retrieve the title for. 77 77 * } 78 * @return string|void String when echois false.78 * @return void|string Void if 'echo' argument is true, the title attribute if 'echo' is false. 79 79 */ 80 80 function the_title_attribute( $args = '' ) { … … 1063 1063 * 1064 1064 * @param string $key Meta data key name. 1065 * @return false|string|array Array of values or single value, if only one element exists. False will be returned if key does not exist. 1065 * @return array|string|false Array of values, or single value if only one element exists. 1066 * False if the key does not exist. 1066 1067 */ 1067 1068 function post_custom( $key = '' ) { … … 1154 1155 * elements. Accepts any valid post field. Default 'ID'. 1155 1156 * } 1156 * @return string HTML content, if not displaying.1157 * @return string HTML dropdown list of pages. 1157 1158 */ 1158 1159 function wp_dropdown_pages( $args = '' ) { … … 1212 1213 echo $html; 1213 1214 } 1215 1214 1216 return $html; 1215 1217 } … … 1253 1255 * @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page). 1254 1256 * } 1255 * @return string|void HTML list of pages.1257 * @return void|string Void if 'echo' argument is true, HTML list of pages if 'echo' is false. 1256 1258 */ 1257 1259 function wp_list_pages( $args = '' ) { … … 1374 1376 * @type Walker $walker Walker instance to use for listing pages. Default empty (Walker_Page). 1375 1377 * } 1376 * @return string|void HTML menu1378 * @return void|string Void if 'echo' argument is true, HTML menu if 'echo' is false. 1377 1379 */ 1378 1380 function wp_page_menu( $args = array() ) { … … 1489 1491 */ 1490 1492 $menu = apply_filters( 'wp_page_menu', $menu, $args ); 1493 1491 1494 if ( $args['echo'] ) { 1492 1495 echo $menu;
Note: See TracChangeset
for help on using the changeset viewer.