Plugin Directory

Changeset 1047577


Ignore:
Timestamp:
12/17/2014 09:22:23 PM (11 years ago)
Author:
WPBackOffice
Message:

updating to 1.1.2

Location:
woocommerce-category-banner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-category-banner/trunk/readme.txt

    r1046236 r1047577  
    33Tags: woocommerce, category, product, banner, image, archive, shop
    44Donate Link: http://wpbackoffice.com/plugins/woocommerce-category-banner/
    5 Requires at least: 2.3
     5Requires at least: 3.5
    66Tested up to: 4.0.1
    7 Stable tag: 1.1.1
     7Stable tag: 1.1.2
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656== Changelog ==
    5757
     58= 1.1.2 =
     59* Bug fix, notice was appearing with WP DEBUG set to true
     60
    5861= 1.1.1 =
    5962* Adding Template tag for custom banner position for custom product category templates.
  • woocommerce-category-banner/trunk/woocommerce-category-banner.php

    r1046236 r1047577  
    44Plugin URI: http://www.wpbackoffice.com/plugins/woocommerce-category-banner/
    55Description: Place a custom banner and link at the top of your product category pages. Easily update the image through your product category edit page.
    6 Version: 1.1.1
     6Version: 1.1.2
    77Author: WP BackOffice
    88Author URI: http://www.wpbackoffice.com
     
    160160   
    161161    // Retreives and print the category banner
    162     public function wcb_show_category_banner( $only_for_categories = true) {
     162    public function wcb_show_category_banner() {
    163163        global $woocommerce;
    164164        global $wp_query;
    165165
    166166        // Make sure this is a product category page
    167         if ( is_product_category() || !$only_for_categories ) {
     167        if ( is_product_category() ) {
    168168            $cat_id = $wp_query->queried_object->term_id;
    169169
     
    205205function wcb_show_category_banner() {
    206206    global $WCB_Category_Banner;
    207     $WCB_Category_Banner->wcb_show_category_banner( false ); //disable the only show for category tag.
     207    $WCB_Category_Banner->wcb_show_category_banner(); //disable the only show for category tag.
    208208}
Note: See TracChangeset for help on using the changeset viewer.