Changeset 4764 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 01/24/2017 10:59:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r4620 r4764 454 454 } 455 455 456 if ( 'en_US' != get_locale() ) { 457 add_filter( 'get_term', array( __NAMESPACE__ . '\I18n', 'translate_term' ) ); 458 add_filter( 'the_content', array( $this, 'translate_post_content' ), 1, 2 ); 459 add_filter( 'the_title', array( $this, 'translate_post_title' ), 1, 2 ); 460 add_filter( 'get_the_excerpt', array( $this, 'translate_post_excerpt' ), 1, 2 ); 461 } 456 add_filter( 'get_term', array( __NAMESPACE__ . '\I18n', 'translate_term' ) ); 457 add_filter( 'the_content', array( $this, 'translate_post_content' ), 1, 2 ); 458 add_filter( 'the_title', array( $this, 'translate_post_title' ), 1, 2 ); 459 add_filter( 'get_the_excerpt', array( $this, 'translate_post_excerpt' ), 1, 2 ); 462 460 463 461 // Instantiate our copy of the Jetpack_Search class.
Note: See TracChangeset
for help on using the changeset viewer.