Plugin Directory

Changeset 1765529


Ignore:
Timestamp:
11/13/2017 11:52:55 PM (8 years ago)
Author:
lonfirebrand
Message:

fix autop issue

Location:
simple-content-experiments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simple-content-experiments/trunk/readme.txt

    r1752862 r1765529  
    66Tested up to: 4.8
    77Requires PHP: 5.3.3
    8 Stable tag: 3.1.0
     8Stable tag: 3.1.1
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    164164
    165165Our solution is to only run one experiment per user per page view. 
     166
    1661671. Scan the page for experiments.
    1671681. If more than one experiment is available, pick one at random.
     
    173174
    174175== Changelog ==
    175 = 3.1
    176 New method for activating debug mode
    177 Fix Markdown issues in readme
    178 Add Google Optimize recommendations to readme
     176= 3.1.1
     177 + Update for WordPress 4.9
     178 + Fix "autop" issue where extra paragraph tags were being added
     179
     180= 3.1.0
     181+ New method for activating debug mode
     182+ Fix Markdown issues in readme
     183+ Add Google Optimize recommendations to readme
    179184
    180185= 3.0.2
  • simple-content-experiments/trunk/simple-content-experiments.php

    r1752862 r1765529  
    22/**
    33 * @package content-experiments
    4  * @version 3.1.0
     4 * @version 3.1.1
    55 */
    66/*
     
    88Description: Shortcodes to create Google Content Experiments elements in a page
    99Author: Lon Koenig (Firebrand LLC)
    10 Version: 3.1.0
     10Version: 3.1.1
    1111Author URI: //firebrand.net/
    1212
     
    9494        // we process the content before building the
    9595        // JavaScript so we know how many variants there are.
    96         $processed_content =  do_shortcode($content);
     96        $processed_content =  trim( do_shortcode( shortcode_unautop($content) ) );
    9797       
    9898
     
    122122            $outStr = 'no experiment ID set up';
    123123        } else {
     124       
    124125            $outStr = '<div id="' . $variant_div .'"'
    125126                .' class="contentexperimentvariant"'
     
    129130            }
    130131            $outStr .= ">\n";
    131             $outStr .= do_shortcode($content);
     132            $outStr .= trim( do_shortcode( shortcode_unautop($content) ) );           
    132133            $outStr .= "</div>\n";
    133134            return $outStr;
Note: See TracChangeset for help on using the changeset viewer.