Plugin Directory

Changeset 803880


Ignore:
Timestamp:
11/13/2013 04:21:01 PM (12 years ago)
Author:
phill_brown
Message:

1.2.0 release - removed assets reaction and fixed bugs with widgets reaction

Location:
context-manager
Files:
51 added
3 edited

Legend:

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

    r669315 r803880  
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.1.5
     7Version: 1.2.0
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
     
    3636        // Setup reactions
    3737        require_once dirname( __FILE__ ) . '/reactions/base.php';
    38         foreach ( array( 'Menu', 'Assets', 'Widgets', 'Body_Class' ) as $reaction ) {
     38        foreach ( array( 'Menu', /*'Assets', */'Widgets', 'Body_Class' ) as $reaction ) {
    3939
    4040            // Include reaction
  • context-manager/trunk/reactions/widgets.php

    r640404 r803880  
    1818            foreach( wp_get_sidebars_widgets() as $sidebar_id => $sidebar_widgets ) {
    1919
    20                 // Skip sidebars with no active widgets
    21                 if ( ! $sidebar_widgets || $sidebar_id == 'wp_inactive_widgets' || substr( $sidebar_id, 0, 16 ) == 'orphaned_widgets'  ) continue;
     20                // Skip sidebars with no active widgets or are no longer registered
     21                if (
     22                    ! $sidebar_widgets
     23                    || $sidebar_id == 'wp_inactive_widgets'
     24                    || substr( $sidebar_id, 0, 16 ) == 'orphaned_widgets'
     25                    || ! isset( $GLOBALS['wp_registered_sidebars'][ $sidebar_id ] )
     26                    || ! isset( $widgets[ $GLOBALS['wp_registered_sidebars'][ $sidebar_id ]['name'] ] )
     27                 ) continue;
    2228
    2329                $widgets[ $GLOBALS['wp_registered_sidebars'][ $sidebar_id ]['name'] ] = array_combine(
  • context-manager/trunk/readme.txt

    r669315 r803880  
    44Tags:  context, wp_enqueue_styles, wp_enqueue_scripts, rules, widget logic, menu rules, body class, widgets, parent menu, active menu
    55Requires at least: 3.2
    6 Tested up to: 3.5
    7 Stable tag: 1.1.5
     6Tested up to: 3.7
     7Stable tag: 1.2.0
    88
    99Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag.
     
    6464== Changelog ==
    6565
     66= 1.2.0 =
     67* [Bugfix]: disabled assets reaction which triggered errors in 3.6. No feasible workaround found yet
     68* [Bugfix]: added conditional checks into widgets reaction
     69
    6670= 1.1.5 =
    6771* [Bugfix]: menu_reaction property not being set in child page and inactive parent menu reactions
Note: See TracChangeset for help on using the changeset viewer.