Plugin Directory

Changeset 648422


Ignore:
Timestamp:
01/05/2013 06:36:14 PM (13 years ago)
Author:
phill_brown
Message:

1.1.3 release - Asset reaction generating a global site error if not logged in

Location:
context-manager
Files:
51 added
4 edited

Legend:

Unmodified
Added
Removed
  • context-manager/trunk/admin/meta-box-reactions.php

    r648332 r648422  
    44class Context_Manager_Meta_Box_Reactions extends PB_Meta_Box2 {
    55
    6     // Setup meta box
     6    // On init
    77    function __construct( $plugin ) {
    88
     
    1414        parent::__construct();
    1515
    16         // Meta box only used on menu_rules post type
     16        // Meta box only used on context_rules post type
    1717        $this->post_type = $this->plugin->post_type;
    1818
     19        add_action( 'admin_init', array( &$this, 'setup_reactions' ) );
     20
     21    }
     22
     23    // On admin_init
     24    function setup_reactions() {
     25       
    1926        // Display reactions
    2027        foreach ( $this->plugin->reactions as $reaction_namespace => $reaction ) {
  • context-manager/trunk/plugin.php

    r648332 r648422  
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.1.2
     7Version: 1.1.3
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
  • context-manager/trunk/reactions/assets.php

    r640080 r648422  
    1212    function form( $preprocess = true ) {
    1313
    14         if ( $preprocess ) {
     14        global $wp_styles, $wp_scripts;
    1515
    16             global $wp_styles, $wp_scripts;
     16        if ( $preprocess && isset( $wp_styles ) && isset( $wp_scripts ) ) {
    1717
    1818            // We need to call wp_enqueue_scripts to get the queued frontend assets
  • context-manager/trunk/readme.txt

    r648332 r648422  
    55Requires at least: 3.2
    66Tested up to: 3.5
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    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.1.3 =
     67* [Bugfix]: Asset reaction generating a global site error if not logged in
     68
    6669= 1.1.2 =
    6770* [Bugfix]: Major issue that generated an error when adding or editing a context rule
Note: See TracChangeset for help on using the changeset viewer.