Plugin Directory

Changeset 640002


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

Hotfixes

Location:
context-manager
Files:
50 added
3 edited

Legend:

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

    r639694 r640002  
    55Author: Phill Brown
    66Author URI: http://pbweb.co.uk
    7 Version: 1.0
     7Version: 1.0.1
    88
    99Copyright 2012 Phill Brown (email: wp@pbweb.co.uk)
     
    2222Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2323*/
    24 
    25 // TODOS:
    26 // Implement update() on reactions
    27 // Make meta keys private
    28 // Import feature for woosidebars and menu rules users
    2924
    3025// Include PB Framework
     
    113108    // Checking if conditions match
    114109    function conditions_match( $context_rule ) {
    115 
    116         // TODO: currently there's only 1 expression field but in the future support multiple expressions tied with and/or
    117110        foreach ( $this->meta_boxes['conditions']->get_fields_flat() as $name => $field_def ) {
    118111            $match = eval( 'return ' . get_post_meta( $context_rule->ID, $name, true ) . ';' );
  • context-manager/trunk/reactions/base.php

    r639694 r640002  
    1515    abstract function form();
    1616
    17     // TODO: Implement
    18     // Custom functionality when the rule is saved
    19     function update() {}
    20 
    2117    // Extra display hooks above and below the main form. Needs to return output, not echo
    2218    function display_header() {}
     
    2622    protected function get_rules() {
    2723
     24        // No form registered
     25        if ( ! $this->form() ) return;
     26
    2827        // Setup meta query conditions
    29         // TODO: change query compare types accordingly with the type of field
    3028        $meta_queries = array();
    3129        foreach( $this->form() as $field_name => $field_data ) {
  • context-manager/trunk/readme.txt

    r639694 r640002  
    55Requires at least: 3.2
    66Tested up to: 3.5
    7 Stable tag: 1.0
     7Stable tag: 1.0.1
    88
    99Make your site react to contextual conditions using a point and click interface
     
    37371. Hit publish
    3838
    39 See a [screenshot](http://wordpress.org/extend/plugins/context-manager/screenshots/) of the below setup.
     39See a [screenshot](http://wordpress.org/extend/plugins/context-manager/screenshots/) of the above setup.
    4040
    4141= Support =
     
    5353
    54541. An example setup for a products section in a online shop
     55
     56== Changelog ==
     57
     58= 1.0.1 =
     59* [Bugfix]: Invalid foreach warning when no rules were added in get_rules()
Note: See TracChangeset for help on using the changeset viewer.