Make WordPress Core


Ignore:
Timestamp:
12/03/2013 05:05:53 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: update comment blocks to match inline docs standards. Props DrewAPicture, see #25837.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r26325 r26556  
    77 * hooks in WordPress to change core functionality.
    88 *
    9  * When using a child theme (see http://codex.wordpress.org/Theme_Development
    10  * and http://codex.wordpress.org/Child_Themes), you can override certain
    11  * functions (those wrapped in a function_exists() call) by defining them first
    12  * in your child theme's functions.php file. The child theme's functions.php
    13  * file is included before the parent theme's file, so the child theme
    14  * functions would be used.
     9 * When using a child theme you can override certain functions (those wrapped
     10 * in a function_exists() call) by defining them first in your child theme's
     11 * functions.php file. The child theme's functions.php file is included before
     12 * the parent theme's file, so the child theme functions would be used.
     13 *
     14 * @link http://codex.wordpress.org/Theme_Development
     15 * @link http://codex.wordpress.org/Child_Themes
    1516 *
    1617 * Functions that are not pluggable (not wrapped in function_exists()) are
     
    2829 * Set up the content width value based on the theme's design.
    2930 *
    30  * @link twentyfourteen_content_width()
     31 * @see twentyfourteen_content_width()
    3132 *
    3233 * @since Twenty Fourteen 1.0
     
    139140 */
    140141function twentyfourteen_get_featured_posts() {
     142    /**
     143     * Filter the featured posts to return in Twenty Fourteen.
     144     *
     145     * @since Twenty Fourteen 1.0
     146     *
     147     * @param array|bool $posts Array of featured posts, otherwise false.
     148     */
    141149    return apply_filters( 'twentyfourteen_get_featured_posts', array() );
    142150}
     
    150158 */
    151159function twentyfourteen_has_featured_posts() {
     160    /** This filter is documented in functions.php */
    152161    return ! is_paged() && (bool) apply_filters( 'twentyfourteen_get_featured_posts', false );
    153162}
    154163
    155164/**
    156  * Register two widget areas.
     165 * Register three Twenty Fourteen widget areas.
    157166 *
    158167 * @since Twenty Fourteen 1.0
     
    215224
    216225/**
    217  * Enqueue scripts and styles for front end.
     226 * Enqueue scripts and styles for the front end.
    218227 *
    219228 * @since Twenty Fourteen 1.0
     
    281290function twentyfourteen_the_attached_image() {
    282291    $post                = get_post();
     292    /**
     293     * Filter the default Twenty Fourteen attachment size.
     294     *
     295     * @since Twenty Fourteen 1.0
     296     *
     297     * @param array $dimensions {
     298     *     An array of height and width dimensions.
     299     *
     300     *     @type int $height Height of the image in pixels. Default 1200.
     301     *     @type int $width  Width of the image in pixels. Default 1200.
     302     * }
     303     */
    283304    $attachment_size     = apply_filters( 'twentyfourteen_attachment_size', array( 1200, 1200 ) );
    284305    $next_attachment_url = wp_get_attachment_url();
Note: See TracChangeset for help on using the changeset viewer.