Make WordPress Core


Ignore:
Timestamp:
10/21/2013 04:34:56 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: fix non-image attachment page layout, props iamtakashi. Fixes #25624.

File:
1 edited

Legend:

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

    r25814 r25856  
    119119
    120120/**
    121  * Adjust content_width value for full-width and attachment templates.
     121 * Adjust content_width value for image attachment template.
    122122 *
    123123 * @since Twenty Fourteen 1.0
     
    126126 */
    127127function twentyfourteen_content_width() {
    128     if ( is_attachment() )
     128    if ( is_attachment() && wp_attachment_is_image() )
    129129        $GLOBALS['content_width'] = 810;
    130130}
Note: See TracChangeset for help on using the changeset viewer.