Plugin Directory

Changeset 1908829


Ignore:
Timestamp:
07/13/2018 02:39:01 PM (8 years ago)
Author:
freshbrewedweb
Message:

Fixed empty classes throwing warning

Location:
classroom
Files:
4 edited
108 copied

Legend:

Unmodified
Added
Removed
  • classroom/tags/2.1.7/includes/class-woocommerce-purchase.php

    r1850310 r1908829  
    451451
    452452        //$classes = explode(',',$classes);
    453         if( in_array( $post->ID,$classes ) || $term_bought )
     453        if( !empty($classes) && in_array( $post->ID,$classes ) || $term_bought )
    454454        {
    455455            return $content;
  • classroom/tags/2.1.7/readme.txt

    r1908798 r1908829  
    55Requires at least: 3.7
    66Tested up to: 4.9
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl.html
  • classroom/tags/2.1.7/wp-classroom.php

    r1908798 r1908829  
    44* Author: Fresh Brewed Web
    55* Author URI: https://freshbrewedweb.com
    6 * Version: 2.1.6
     6* Version: 2.1.7
    77* Description: Create a digital video based classroom in WordPress. This plugin gives you the ability to publish classes. It's flexible enough to combine with other well known WordPress plugins to enhance the functionality.
    88* Tags: classroom, education, school, woocommerce, video
     
    1515}
    1616
    17 define( 'WP_CLASSROOM_VERSION', '2.1.6' );
     17define( 'WP_CLASSROOM_VERSION', '2.1.7' );
    1818define( 'WP_CLASSROOM_NAMESPACE', 'wp-classroom' );
    1919define( 'WP_CLASSROOM_CLASS_POST_TYPE', 'wp_classroom' );
  • classroom/trunk/includes/class-woocommerce-purchase.php

    r1850310 r1908829  
    451451
    452452        //$classes = explode(',',$classes);
    453         if( in_array( $post->ID,$classes ) || $term_bought )
     453        if( !empty($classes) && in_array( $post->ID,$classes ) || $term_bought )
    454454        {
    455455            return $content;
  • classroom/trunk/readme.txt

    r1908798 r1908829  
    55Requires at least: 3.7
    66Tested up to: 4.9
    7 Stable tag: 2.1.6
     7Stable tag: 2.1.7
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl.html
  • classroom/trunk/wp-classroom.php

    r1908798 r1908829  
    44* Author: Fresh Brewed Web
    55* Author URI: https://freshbrewedweb.com
    6 * Version: 2.1.6
     6* Version: 2.1.7
    77* Description: Create a digital video based classroom in WordPress. This plugin gives you the ability to publish classes. It's flexible enough to combine with other well known WordPress plugins to enhance the functionality.
    88* Tags: classroom, education, school, woocommerce, video
     
    1515}
    1616
    17 define( 'WP_CLASSROOM_VERSION', '2.1.6' );
     17define( 'WP_CLASSROOM_VERSION', '2.1.7' );
    1818define( 'WP_CLASSROOM_NAMESPACE', 'wp-classroom' );
    1919define( 'WP_CLASSROOM_CLASS_POST_TYPE', 'wp_classroom' );
Note: See TracChangeset for help on using the changeset viewer.