WordPress.org

Make WordPress Core

Changeset 20668


Ignore:
Timestamp:
05/01/2012 06:02:40 PM (10 years ago)
Author:
nacin
Message:

Don't try to translate tags in WP_Theme::translate_header() if we are not in the admin and get_theme_feature_list() isn't defined. see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-theme.php

    r20590 r20668  
    691691                return $this->name_translated;
    692692            case 'Tags' :
    693                 if ( empty( $value ) )
     693                if ( empty( $value ) || ! function_exists( 'get_theme_feature_list' ) )
    694694                    return $value;
    695695
Note: See TracChangeset for help on using the changeset viewer.