Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Place the correct load_theme_textdomain call after theme setup

Per http://codex.wordpress.org/Function_Reference/load_theme_textdomain:

- If languages reside in the '/lang' folder, load them from there.
- Move the loading to after_theme_setup
  • Loading branch information...
commit cdc3ebc995d84cd399fc259dcbc002d399b7a081 1 parent e5e25bc
@zedejose authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 functions.php
View
9 functions.php
@@ -23,11 +23,6 @@
if ( ! isset( $content_width ) )
$content_width = 770; /* pixels */
-/**
- * Declaring the theme language domain
- */
-load_theme_textdomain('bootstrapwp');
-
/*
| -------------------------------------------------------------------
| Setup Theme
@@ -45,6 +40,10 @@ function bootstrapwp_theme_setup() {
'main-menu' => __( 'Main Menu', 'bootstrapwp' ),
) );
add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery', 'link', 'quote', 'status', 'video', 'audio', 'chat' ) );
+ /**
+ * Declaring the theme language domain
+ */
+ load_theme_textdomain('bootstrapwp', get_template_directory() . '/lang');
}
endif;
Please sign in to comment.
Something went wrong with that request. Please try again.