Plugin Directory

Changeset 1262652


Ignore:
Timestamp:
10/09/2015 06:54:05 PM (10 years ago)
Author:
activeim
Message:

#bugFix fixed issue with plugin compatiblilty that create faux pages without a post id was causing an error.

Location:
marketing-optimizer/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • marketing-optimizer/trunk/includes/class.mo_page_post_type.php

    r1256781 r1262652  
    158158        if (is_object($post) && $post->post_type == 'page') {
    159159            $mo_page_obj = mo_pages::instance($post->ID);
    160             $variation_id = $mo_page_obj->get_current_variation();
     160            if(is_object($mo_page_obj)){
     161                $variation_id = $mo_page_obj->get_current_variation();
     162           
    161163            $mo_settings_obj = new mo_settings();
    162164            if ($mo_settings_obj->get_mo_lp_cache_compatible() == 'false' || isset($_GET['mo_page_variation_id']) || isset($_GET['t']) || count($mo_page_obj->get_variation_ids_arr()) >= 1) {
     
    247249                    }
    248250                }
    249             }
     251           }
     252           }
    250253        }
    251254    }
     
    466469        if (get_post_type($id) == 'page') {
    467470            if ($pagenow != 'edit.php') {
     471           
    468472                $mo_page_obj = mo_pages::instance($id);
    469                 $v_id = $mo_page_obj->get_current_variation();
     473                if (is_object($mo_page_obj)) {
     474                    $v_id = $mo_page_obj->get_current_variation();
     475                }else{
     476                    $v_id = 0;
     477                }
    470478            } else {
    471479                $v_id = 0;
  • marketing-optimizer/trunk/includes/class.mo_post_type.php

    r1242758 r1262652  
    958958                if (is_object ( $post ) && $post->post_type === $this->get_mo_pt_post_type()) {
    959959                    $mo_obj = $this->get_obj_by_type($post->ID);
     960                    if(is_object($mo_obj)){
    960961                                        if ($mo_settings_obj->get_mo_lp_cache_compatible () == 'false' || isset ( $_GET ['mo_page_variation_id'] ) || isset ( $_GET ['t'] ) || count ( $mo_obj->get_variation_ids_arr () ) > 0) {
    961962                        if (is_null ( $variation_id )) {
     
    10091010                    }
    10101011                }
     1012                }
    10111013            }
    10121014        }
  • marketing-optimizer/trunk/marketing-optimizer.php

    r1256781 r1262652  
    44 * Plugin Name: Marketing Optimizer for Wordpress Plugin
    55 * URI: http://www.marketingoptimizer.com/?apcid=8381
    6  * Version: 20151010
     6 * Version: 20151011
    77 * Description: Create Landing Pages for Wordpress
    88 * Author: Marketing Optimizer, customercare@marketingoptimizer.com
     
    2424    CONST MO_DIRECTORY = 'marketing-optimizer';
    2525
    26     public static $plugin_version = '20150930';
     26    public static $plugin_version = '20151011';
    2727
    2828    public static $plugin_name = 'marketing-optimizer';
  • marketing-optimizer/trunk/readme.txt

    r1256781 r1262652  
    9595
    9696== Changelog ==
     97= Version 201501009 =
     98* #bugFix fixed issue with plugin compatiblilty that create faux pages without a post id was causing an error.
    9799= Version 20150930 =
    98 * #bugFix fixed issue with plugin compatiblilty that create pages that are not truly pages was causing an error.
     100* #bugFix fixed issue with plugin compatiblilty that create faux pages without a post id was causing an error.
    99101= Version 20150910 =
    100102* #bugFix fixed issue with notice being thrown accessing static property as non static.
Note: See TracChangeset for help on using the changeset viewer.