Make WordPress Core

Ticket #24413: 24413.2.patch

File 24413.2.patch, 3.0 KB (added by DrewAPicture, 11 years ago)
  • wp-content/themes/twentythirteen/functions.php

     
    179179 * @since Twenty Thirteen 1.0
    180180 *
    181181 * @param string $mce_css CSS path to load in TinyMCE.
    182  * @return string
     182 * @return string The filtered CSS paths list.
    183183 */
    184184function twentythirteen_mce_css( $mce_css ) {
    185185        $fonts_url = twentythirteen_fonts_url();
     
    237237 *
    238238 * @param string $title Default title text for current view.
    239239 * @param string $sep Optional separator.
    240  * @return string Filtered title.
     240 * @return string The filtered title.
    241241 */
    242242function twentythirteen_wp_title( $title, $sep ) {
    243243        global $paged, $page;
     
    404404 * @since Twenty Thirteen 1.0
    405405 *
    406406 * @param boolean $echo Whether to echo the date. Default true.
    407  * @return string
     407 * @return string The HTML-formatted post date.
    408408 */
    409409function twentythirteen_entry_date( $echo = true ) {
    410410        $format_prefix = ( has_post_format( 'chat' ) || has_post_format( 'status' ) ) ? _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' ): '%2$s';
     
    426426/**
    427427 * Returns the URL from the post.
    428428 *
    429  * @uses get_the_link() to get the URL in the post meta (if it exists) or
     429 * @uses get_the_post_format_url() to get the URL in the post meta (if it exists) or
    430430 * the first link found in the post content.
    431431 *
    432432 * Falls back to the post permalink if no URL is found in the post.
    433433 *
    434434 * @since Twenty Thirteen 1.0
    435  * @return string URL
     435 *
     436 * @return string The Link format URL.
    436437 */
    437438function twentythirteen_get_link_url() {
    438439        $has_url = get_the_post_format_url();
     
    446447 * @since Twenty Thirteen 1.0
    447448 *
    448449 * @param array $atts Combined and filtered attribute list.
    449  * @return array
     450 * @return array The filtered attribute list.
    450451 */
    451452function twentythirteen_gallery_atts( $atts ) {
    452453        if ( has_post_format( 'gallery' ) && ! is_single() )
     
    457458add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' );
    458459
    459460/**
    460  * Extends the default WordPress body class to denote:
     461 * Extends the default WordPress body classes.
     462 *
     463 * Adds body classes to denote:
    461464 * 1. Custom fonts enabled.
    462465 * 2. Single or multiple authors.
    463466 * 3. Active widgets in the sidebar to change the layout and spacing.
     
    465468 *
    466469 * @since Twenty Thirteen 1.0
    467470 *
    468  * @param array $classes Existing class values.
    469  * @return array Filtered class values.
     471 * @param array $classes A list of existing body class values.
     472 * @return array The filtered body class list.
    470473 */
    471474function twentythirteen_body_class( $classes ) {
    472475
     
    507510 *
    508511 * @since Twenty Thirteen 1.0
    509512 *
    510  * @param array $atts Attribute list.
    511  * @return array Filtered attribute list.
     513 * @param array $atts The attribute list.
     514 * @return array The filtered attribute list.
    512515 */
    513516function twentythirteen_video_width( $atts ) {
    514517        if ( ! is_admin() && has_post_format( 'video' ) ) {