WordPress.org

Make WordPress Core

Changeset 20945


Ignore:
Timestamp:
05/27/12 16:42:38 (5 years ago)
Author:
nacin
Message:

WP_Theme: If no 'Domain Path' header is specified, default to looking in the /languages directory. see #20103, see #20448.

File:
1 edited

Legend:

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

    r20715 r20945  
    10261026        if ( $domainpath = $this->get('DomainPath') ) 
    10271027            $path .= $domainpath; 
     1028        else 
     1029            $path .= '/languages'; 
    10281030 
    10291031        $this->textdomain_loaded = load_theme_textdomain( $textdomain, $path ); 
Note: See TracChangeset for help on using the changeset viewer.