Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Filter extension textdomains with hybrid_get_textdomains() so that th…

…ey use the same textdomain as the theme.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@567 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
commit 998c506d24584e257682e74e6ce9dfff7898ecea 1 parent b61f759
greenshady authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 hybrid.php
View
4 hybrid.php
@@ -284,6 +284,10 @@ function default_filters() {
/* Filter the textdomain mofile to allow child themes to load the parent theme translation. */
add_filter( 'load_textdomain_mofile', 'hybrid_load_textdomain', 10, 2 );
+ /* Filter textdomain for extensions. */
+ add_filter( 'breadcrumb_trail_textdomain', 'hybrid_get_textdomain' );
+ add_filter( 'theme_layouts_textdomain', 'hybrid_get_textdomain' );
+
/* Make text widgets and term descriptions shortcode aware. */
add_filter( 'widget_text', 'do_shortcode' );
add_filter( 'term_description', 'do_shortcode' );
Please sign in to comment.
Something went wrong with that request. Please try again.