Merge pull request #2990 from kloon/master

Apply the_content filter to taxonomy archive descriptions
This commit is contained in:
Mike Jolley 2013-04-23 08:11:12 -07:00
commit 91ffd711ce
2 changed files with 4 additions and 2 deletions

View File

@ -108,6 +108,8 @@ if ( class_exists( 'WP_Importer' ) ) {
$new_rates = array();
ini_set( 'auto_detect_line_endings', '1' );
if ( ( $handle = fopen( $file, "r" ) ) !== FALSE ) {
$header = fgetcsv( $handle, 0, $this->delimiter );

View File

@ -283,9 +283,9 @@ if ( ! function_exists( 'woocommerce_taxonomy_archive_description' ) ) {
*/
function woocommerce_taxonomy_archive_description() {
if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) == 0 ) {
$description = term_description();
$description = apply_filters( 'the_content', term_description() );
if ( $description ) {
echo '<div class="term-description">' . wpautop( wptexturize( $description ) ) . '</div>';
echo '<div class="term-description">' . $description . '</div>';
}
}
}