Make WordPress Core

Ticket #24413: 24413.patch

File 24413.patch, 3.3 KB (added by DrewAPicture, 12 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;
     
    357357
    358358if ( ! function_exists( 'twentythirteen_entry_meta' ) ) :
    359359/**
    360  * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
     360 * Prints HTML with meta information for current post.
    361361 *
     362 * Printed meta includes:
     363 * 1. categories
     364 * 2. tags
     365 * 3. permalink
     366 * 4. author
     367 * 5. date
     368 *
    362369 * Create your own twentythirteen_entry_meta() to override in a child theme.
    363370 *
    364371 * @since Twenty Thirteen 1.0
     
    404411 * @since Twenty Thirteen 1.0
    405412 *
    406413 * @param boolean $echo Whether to echo the date. Default true.
    407  * @return string
     414 * @return string The HTML-formatted post date.
    408415 */
    409416function twentythirteen_entry_date( $echo = true ) {
    410417        $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';
     
    426433/**
    427434 * Returns the URL from the post.
    428435 *
    429  * @uses get_the_link() to get the URL in the post meta (if it exists) or
     436 * @uses get_the_post_format_url() to get the URL in the post meta (if it exists) or
    430437 * the first link found in the post content.
    431438 *
    432439 * Falls back to the post permalink if no URL is found in the post.
    433440 *
    434441 * @since Twenty Thirteen 1.0
    435  * @return string URL
     442 *
     443 * @return string The Link format URL.
    436444 */
    437445function twentythirteen_get_link_url() {
    438446        $has_url = get_the_post_format_url();
     
    446454 * @since Twenty Thirteen 1.0
    447455 *
    448456 * @param array $atts Combined and filtered attribute list.
    449  * @return array
     457 * @return array The filtered attribute list.
    450458 */
    451459function twentythirteen_gallery_atts( $atts ) {
    452460        if ( has_post_format( 'gallery' ) && ! is_single() )
     
    457465add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' );
    458466
    459467/**
     468 * Sets up special body classes.
     469 *
    460470 * Extends the default WordPress body class to denote:
    461471 * 1. Custom fonts enabled.
    462472 * 2. Single or multiple authors.
     
    465475 *
    466476 * @since Twenty Thirteen 1.0
    467477 *
    468  * @param array $classes Existing class values.
    469  * @return array Filtered class values.
     478 * @param array $classes A list of existing body class values.
     479 * @return array The filtered body class list.
    470480 */
    471481function twentythirteen_body_class( $classes ) {
    472482
     
    507517 *
    508518 * @since Twenty Thirteen 1.0
    509519 *
    510  * @param array $atts Attribute list.
    511  * @return array Filtered attribute list.
     520 * @param array $atts The attribute list.
     521 * @return array The filtered attribute list.
    512522 */
    513523function twentythirteen_video_width( $atts ) {
    514524        if ( ! is_admin() && has_post_format( 'video' ) ) {