Make WordPress Core

Changeset 30099


Ignore:
Timestamp:
10/29/2014 10:13:14 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: avoid errors by preventing Twenty Fifteen from being activated in old versions of WordPress

Props iamtakashi, fixes #30137.

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
1 added
1 edited

Legend:

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

    r30097 r30099  
    3333if ( ! isset( $content_width ) ) {
    3434    $content_width = 660;
     35}
     36
     37/**
     38 * Twenty Fifteen only works in WordPress 4.1 or later.
     39 */
     40if ( version_compare( $GLOBALS['wp_version'], '4.1', '<' ) ) {
     41    require get_template_directory() . '/inc/back-compat.php';
    3542}
    3643
Note: See TracChangeset for help on using the changeset viewer.