WordPress.org

Plugin Directory

Changeset 1287828


Ignore:
Timestamp:
11/17/15 09:37:56 (2 years ago)
Author:
sladix
Message:

Fixed warnings

Location:
restrict-taxonomies
Files:
2 edited
7 copied

Legend:

Unmodified
Added
Removed
  • restrict-taxonomies/tags/1.2.6/readme.txt

    r1283110 r1287828  
    55Requires at least: 3.1 
    66Tested up to: 4.3.1 
    7 Stable tag: 1.2.5 
     7Stable tag: 1.2.6 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3636== Changelog == 
    3737 
     38= 1.2.6 = 
     39* Fixed warnings for frontend options 
     40 
    3841= 1.2.5 = 
    3942* Fixed warnings reported by @swinggraphics 
  • restrict-taxonomies/tags/1.2.6/restrict-taxonomies.php

    r1283110 r1287828  
    55Author: Sladix 
    66Author URI: https://twitter.com/sladix 
    7 Version: 1.2.5 
     7Version: 1.2.6 
    88*/ 
    99 
     
    5555            register_deactivation_hook( __FILE__ , array( &$this, 'desactivate' ) ); 
    5656            register_activation_hook( __FILE__ , array( &$this, 'activate' ) ); 
    57         }elseif($frontOptions['frontend']) 
     57        }elseif(isset($frontOptions['frontend']) && $frontOptions['frontend']) 
    5858        { 
    5959            //Front 
     
    245245        // $cats    = $this->get_cats(); 
    246246        $fo = get_option('RestrictTaxs_general_options'); 
    247         if($fo['frontend']) 
     247        if(isset($fo['frontend']) && $fo['frontend']) 
    248248        { 
    249249            $rc_options[] = array( 
     
    468468                    <?php settings_fields('RestrictTaxs_general_options'); ?> 
    469469                    <h4>General options</h4> 
    470                     <label><input type="checkbox" name="RestrictTaxs_general_options[frontend]" value="1" <?php if($frontOptions['frontend']){echo "checked";} ?>> Front end restrictions</label> 
     470                    <label><input type="checkbox" name="RestrictTaxs_general_options[frontend]" value="1" <?php if(isset($frontOptions['frontend']) && $frontOptions['frontend']){echo "checked";} ?>> Front end restrictions</label> 
    471471                    <?php submit_button(); ?> 
    472472            </form> 
  • restrict-taxonomies/trunk/readme.txt

    r1283110 r1287828  
    55Requires at least: 3.1 
    66Tested up to: 4.3.1 
    7 Stable tag: 1.2.5 
     7Stable tag: 1.2.6 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3636== Changelog == 
    3737 
     38= 1.2.6 = 
     39* Fixed warnings for frontend options 
     40 
    3841= 1.2.5 = 
    3942* Fixed warnings reported by @swinggraphics 
  • restrict-taxonomies/trunk/restrict-taxonomies.php

    r1283110 r1287828  
    55Author: Sladix 
    66Author URI: https://twitter.com/sladix 
    7 Version: 1.2.5 
     7Version: 1.2.6 
    88*/ 
    99 
     
    5555            register_deactivation_hook( __FILE__ , array( &$this, 'desactivate' ) ); 
    5656            register_activation_hook( __FILE__ , array( &$this, 'activate' ) ); 
    57         }elseif($frontOptions['frontend']) 
     57        }elseif(isset($frontOptions['frontend']) && $frontOptions['frontend']) 
    5858        { 
    5959            //Front 
     
    245245        // $cats    = $this->get_cats(); 
    246246        $fo = get_option('RestrictTaxs_general_options'); 
    247         if($fo['frontend']) 
     247        if(isset($fo['frontend']) && $fo['frontend']) 
    248248        { 
    249249            $rc_options[] = array( 
     
    468468                    <?php settings_fields('RestrictTaxs_general_options'); ?> 
    469469                    <h4>General options</h4> 
    470                     <label><input type="checkbox" name="RestrictTaxs_general_options[frontend]" value="1" <?php if($frontOptions['frontend']){echo "checked";} ?>> Front end restrictions</label> 
     470                    <label><input type="checkbox" name="RestrictTaxs_general_options[frontend]" value="1" <?php if(isset($frontOptions['frontend']) && $frontOptions['frontend']){echo "checked";} ?>> Front end restrictions</label> 
    471471                    <?php submit_button(); ?> 
    472472            </form> 
Note: See TracChangeset for help on using the changeset viewer.