Plugin Directory

Changeset 640003


Ignore:
Timestamp:
12/16/2012 12:49:26 PM (13 years ago)
Author:
phill_brown
Message:

Body class and widgets broken when no rules applied

Location:
context-manager
Files:
50 added
4 edited

Legend:

Unmodified
Added
Removed
  • context-manager/trunk/plugin.php

    r640002 r640003  
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.0.1
     7Version: 1.0.2
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
  • context-manager/trunk/reactions/body_class.php

    r639694 r640003  
    2626    function add_classes( $classes ) {
    2727
    28         if ( ! $context_rules = $this->get_rules() ) return;
     28        if ( ! $context_rules = $this->get_rules() ) return $classes;
    2929        foreach ( $context_rules as $context_rule ) {
    3030            if ( ! $this->plugin->conditions_match( $context_rule ) ) continue;
  • context-manager/trunk/reactions/widgets.php

    r639694 r640003  
    5555        // As we're calling wp_get_sidebars_widgets() in form() - we need a hack to stop PHP getting into an infinite loop
    5656        $this->form_skip_get_values = true;
    57         if ( ! $context_rules = $this->get_rules() ) return;
     57        if ( ! $context_rules = $this->get_rules() ) return $sidebars_widgets;
    5858        $this->form_skip_get_values = false;
    5959
  • context-manager/trunk/readme.txt

    r640002 r640003  
    55Requires at least: 3.2
    66Tested up to: 3.5
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88
    99Make your site react to contextual conditions using a point and click interface
     
    5656== Changelog ==
    5757
     58= 1.0.2 =
     59* [Bugfix]: Body class and widget reactions caused an error when no rules were set up
     60
    5861= 1.0.1 =
    5962* [Bugfix]: Invalid foreach warning when no rules were added in get_rules()
Note: See TracChangeset for help on using the changeset viewer.