Przeglądaj źródła

Move require_once( 'library/custom-post-type.php' ) in bones_ahoy function after load_theme_textdomain to be sure that custom taxonomies will be translated

Emmanuel Hesry 11 lat temu
rodzic
commit
1b8e3e0969
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      functions.php

+ 3 - 3
functions.php

@@ -11,9 +11,6 @@ sidebars, comments, ect.
 // LOAD BONES CORE (if you remove this, the theme will break)
 require_once( 'library/bones.php' );
 
-// USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY
-require_once( 'library/custom-post-type.php' );
-
 // CUSTOMIZE THE WORDPRESS ADMIN (off by default)
 // require_once( 'library/admin.php' );
 
@@ -30,6 +27,9 @@ function bones_ahoy() {
   // let's get language support going, if you need it
   load_theme_textdomain( 'bonestheme', get_template_directory() . '/library/translation' );
 
+  // USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY
+  require_once( 'library/custom-post-type.php' );
+
   // launching operation cleanup
   add_action( 'init', 'bones_head_cleanup' );
   // A better title