WordPress.org

Make WordPress Core

Ticket #11853: general_template.php.diff

File general_template.php.diff, 4.9 KB (added by sirzooro, 8 years ago)
  • wp-includes/general-template.php

     
    12921292 *
    12931293 * @since 1.5.0
    12941294 *
    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.
    12961296 * @param int|object $post Optional post ID or object. Default is global $post object.
    12971297 * @return string
    12981298 */
     
    13111311 *
    13121312 * @since 2.0.0
    13131313 *
    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.
    13161316 * @param int|object $post Optional post ID or object. Default is global $post object.
    13171317 * @param bool $translate Whether to translate the time string or not
    13181318 * @return string
     
    13341334 *
    13351335 * @since 2.0.0
    13361336 *
    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.
    13381338 */
    13391339function the_modified_time($d = '') {
    13401340        echo apply_filters('the_modified_time', get_the_modified_time($d), $d);
     
    13451345 *
    13461346 * @since 2.0.0
    13471347 *
    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.
    13491349 * @return string
    13501350 */
    13511351function get_the_modified_time($d = '') {
     
    13611361 *
    13621362 * @since 2.0.0
    13631363 *
    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 object
    1367  * @param bool translate Whether to translate the result or not
     1364 * @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
    13681368 * @return string Returns timestamp
    13691369 */
    13701370function get_post_modified_time( $d = 'U', $gmt = false, $post = null, $translate = false ) {
     
    14011401 *
    14021402 * @since 0.71
    14031403 *
    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.
    14061406  */
    14071407function the_weekday_date($before='',$after='') {
    14081408        global $wp_locale, $post, $day, $previousweekday;
     
    14421442 *
    14431443 * @since 2.8.0
    14441444 *
    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.
    14461446 */
    14471447function automatic_feed_links( $add = true ) {
    14481448        if ( $add )
     
    14601460 *
    14611461 * @param array $args Optional arguments.
    14621462 */
    1463 function feed_links( $args ) {
     1463function feed_links( $args = array() ) {
    14641464        $defaults = array(
    14651465                /* translators: Separator between blog name and feed type in feed links */
    14661466                'separator'     => _x('»', 'feed link'),
     
    14831483 *
    14841484 * @param array $args Optional arguments.
    14851485 */
    1486 function feed_links_extra( $args ) {
     1486function feed_links_extra( $args = array() ) {
    14871487        $defaults = array(
    14881488                /* translators: Separator between blog name and feed type in feed links */
    14891489                'separator'   => _x('»', 'feed link'),
     
    16431643 * @since 2.1.0
    16441644 *
    16451645 * @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.
    16481648 * @param bool $media_buttons Optional, default is true. Whether to display media buttons.
    16491649 * @param int $tab_index Optional, default is 2. Tabindex for textarea element.
    16501650 */
     
    19031903 * @param string $key The unique key for this theme.
    19041904 * @param string $name The name of the theme.
    19051905 * @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.
    19071907 */
    19081908function wp_admin_css_color($key, $name, $url, $colors = array()) {
    19091909        global $_wp_admin_css_colors;