Plugin Directory

Changeset 1210486


Ignore:
Timestamp:
07/31/2015 05:44:17 PM (11 years ago)
Author:
activeim
Message:

#bugFix fixed an issue with content not being shown in editor when activating the plugin.
#bugFix fixed an issue when changing marketing optimizer integration login credentials it was not updating the account id.

Location:
marketing-optimizer/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • marketing-optimizer/trunk/admin/main-settings-page.php

    r1199398 r1210486  
    3232            if (isset ( $_POST ['mo_password'] )) {
    3333                    $mo_settings_obj->set_mo_password ( $_POST ['mo_password'] );
     34            }
     35            if(isset($_POST['mo_username']) && isset($_POST['mo_password'])){
     36                require_once (WP_PLUGIN_DIR . '/marketing-optimizer/includes/'.'class.mo_autoloader.php');
     37                 $mo_api_auth_obj = new mo_api_auth($mo_settings_obj->get_mo_username(), $mo_settings_obj->get_mo_password());
     38                $mo_api_auth_obj->set_is_new_session(true)->execute();
     39                $decodec_result = json_decode($mo_api_auth_obj->get_response(), true);
     40                $mo_settings_obj->set_mo_account_id($decodec_result['data']['account_id']);
    3441            }
    3542            if (! isset ( $_POST ['mo_phone_tracking'] )) {
  • marketing-optimizer/trunk/includes/class.mo_metaboxes.php

    r1199398 r1210486  
    129129            $v_id = $mo_obj->get_current_variation();
    130130            $mo_description = $mo_obj->get_variation_property($v_id, 'description');
     131            $mo_description = ($mo_description=="" && $v_id==0)?$post->post_title:$mo_description;
    131132            echo "<div id='" . $this->get_mo_short_type() . "_description_div'><div id='description_wrap'><input placeholder='" . __('Add Description for this variation.', mo_plugin::MO_LP_TEXT_DOMAIN) . "' type='text' class='description' name='description' id='description' value='{$mo_description}' style='width:100%;line-height:1.7em'></div></div>";
    132133        }
  • marketing-optimizer/trunk/includes/class.mo_post_type.php

    r1199398 r1210486  
    523523     */
    524524    public function mo_get_variation_content_for_editor($content, $post_id) {
     525        global $post;
    525526        if (get_post_type($post_id) === $this->get_mo_pt_post_type()) {
    526527            $mo_obj = $this->get_obj_by_type($post_id);
     
    529530            try {
    530531                $content = $mo_obj->get_variation_property($v_id, 'content');
     532                $content = ($content_tmp=="" && $v_id==0)?$post->post_content:$content;
    531533            } catch (Exception $e) {
    532534                $content = '';
  • marketing-optimizer/trunk/marketing-optimizer.php

    r1199398 r1210486  
    44 * Plugin Name: Marketing Optimizer for Wordpress Plugin
    55 * URI: http://www.marketingoptimizer.com/?apcid=8381
    6  * Version: 20150715
     6 * Version: 20150731
    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 = '20150715';
     26    public static $plugin_version = '20150731';
    2727
    2828    public static $plugin_name = 'marketing-optimizer';
  • marketing-optimizer/trunk/readme.txt

    r1199398 r1210486  
    9595
    9696== Changelog ==
    97 = Version 20150715 =
    98 * #enhancement added more relevant names to calls-to-action and pop up templates.
    99 * #enhancement added click to call to Marketing Optmizer visitor level tracking numbers.
    100 = Version 20150713 =
    101 * #bugFix custom fields remove for CTA.
    102 * #bugFix update Pop-Ups preview image.
     97= Version 20150731 =
     98* #bugFix fixed an issue with content not being shown in editor when activating the plugin.
     99* #bugFix fixed an issue when changing marketing optimizer integration login credentials it was not updating the account id.
    103100= Version 20150710 =
    104101* #bugFix fixed issue with variation testing stats not displaying correctly.
Note: See TracChangeset for help on using the changeset viewer.