Ticket #11853: general_template.php.diff
File general_template.php.diff, 4.9 KB (added by , 15 years ago) |
---|
-
wp-includes/general-template.php
1292 1292 * 1293 1293 * @since 1.5.0 1294 1294 * 1295 * @param string $d Either 'G', 'U', or php date format defaults to the value specified in the time_format option.1295 * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option. 1296 1296 * @param int|object $post Optional post ID or object. Default is global $post object. 1297 1297 * @return string 1298 1298 */ … … 1311 1311 * 1312 1312 * @since 2.0.0 1313 1313 * 1314 * @param string $d Either 'G', 'U', or php date format.1315 * @param bool $gmt Whether of not to return the gmt time.1314 * @param string $d Optional Either 'G', 'U', or php date format. 1315 * @param bool $gmt Optional, default is false. Whether of not to return the gmt time. 1316 1316 * @param int|object $post Optional post ID or object. Default is global $post object. 1317 1317 * @param bool $translate Whether to translate the time string or not 1318 1318 * @return string … … 1334 1334 * 1335 1335 * @since 2.0.0 1336 1336 * 1337 * @param string $d Either 'G', 'U', or php date format defaults to the value specified in the time_format option.1337 * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option. 1338 1338 */ 1339 1339 function the_modified_time($d = '') { 1340 1340 echo apply_filters('the_modified_time', get_the_modified_time($d), $d); … … 1345 1345 * 1346 1346 * @since 2.0.0 1347 1347 * 1348 * @param string $d Either 'G', 'U', or php date format defaults to the value specified in the time_format option.1348 * @param string $d Optional Either 'G', 'U', or php date format defaults to the value specified in the time_format option. 1349 1349 * @return string 1350 1350 */ 1351 1351 function get_the_modified_time($d = '') { … … 1361 1361 * 1362 1362 * @since 2.0.0 1363 1363 * 1364 * @param string $d Either 'G', 'U', or php date format.1365 * @param bool $gmt Whether of not to return the gmt time.1366 * @param int|object $post A post_id or post object1367 * @param bool translateWhether to translate the result or not1364 * @param string $d Optional, default is 'U'. Either 'G', 'U', or php date format. 1365 * @param bool $gmt Optional, default is false. Whether of not to return the gmt time. 1366 * @param int|object $post Optional, default is global post object. A post_id or post object 1367 * @param bool $translate Optional, default is false. Whether to translate the result or not 1368 1368 * @return string Returns timestamp 1369 1369 */ 1370 1370 function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) { … … 1401 1401 * 1402 1402 * @since 0.71 1403 1403 * 1404 * @param string $before output before the date.1405 * @param string $after output after the date.1404 * @param string $before Optional Output before the date. 1405 * @param string $after Optional Output after the date. 1406 1406 */ 1407 1407 function the_weekday_date($before='',$after='') { 1408 1408 global $wp_locale, $post, $day, $previousweekday; … … 1442 1442 * 1443 1443 * @since 2.8.0 1444 1444 * 1445 * @param boolean $add Add or remove links. Defaults to true.1445 * @param boolean $add Optional, default is true. Add or remove links. Defaults to true. 1446 1446 */ 1447 1447 function automatic_feed_links( $add = true ) { 1448 1448 if ( $add ) … … 1460 1460 * 1461 1461 * @param array $args Optional arguments. 1462 1462 */ 1463 function feed_links( $args ) {1463 function feed_links( $args = array() ) { 1464 1464 $defaults = array( 1465 1465 /* translators: Separator between blog name and feed type in feed links */ 1466 1466 'separator' => _x('»', 'feed link'), … … 1483 1483 * 1484 1484 * @param array $args Optional arguments. 1485 1485 */ 1486 function feed_links_extra( $args ) {1486 function feed_links_extra( $args = array() ) { 1487 1487 $defaults = array( 1488 1488 /* translators: Separator between blog name and feed type in feed links */ 1489 1489 'separator' => _x('»', 'feed link'), … … 1643 1643 * @since 2.1.0 1644 1644 * 1645 1645 * @param string $content Textarea content. 1646 * @param string $id HTML ID attribute value.1647 * @param string $prev_id HTML ID name for switching back and forth between visual editors.1646 * @param string $id Optional, default is 'content'. HTML ID attribute value. 1647 * @param string $prev_id Optional, default is 'title'. HTML ID name for switching back and forth between visual editors. 1648 1648 * @param bool $media_buttons Optional, default is true. Whether to display media buttons. 1649 1649 * @param int $tab_index Optional, default is 2. Tabindex for textarea element. 1650 1650 */ … … 1903 1903 * @param string $key The unique key for this theme. 1904 1904 * @param string $name The name of the theme. 1905 1905 * @param string $url The url of the css file containing the colour scheme. 1906 * @param array @colors An array of CSS color definitions which are used to give the user a feel for the theme.1906 * @param array @colors Optional An array of CSS color definitions which are used to give the user a feel for the theme. 1907 1907 */ 1908 1908 function wp_admin_css_color($key, $name, $url, $colors = array()) { 1909 1909 global $_wp_admin_css_colors;