Changeset 1765529
- Timestamp:
- 11/13/2017 11:52:55 PM (8 years ago)
- Location:
- simple-content-experiments/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
simple-content-experiments.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-content-experiments/trunk/readme.txt
r1752862 r1765529 6 6 Tested up to: 4.8 7 7 Requires PHP: 5.3.3 8 Stable tag: 3.1. 08 Stable tag: 3.1.1 9 9 License: GPLv2 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 164 164 165 165 Our solution is to only run one experiment per user per page view. 166 166 167 1. Scan the page for experiments. 167 168 1. If more than one experiment is available, pick one at random. … … 173 174 174 175 == 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 179 184 180 185 = 3.0.2 -
simple-content-experiments/trunk/simple-content-experiments.php
r1752862 r1765529 2 2 /** 3 3 * @package content-experiments 4 * @version 3.1. 04 * @version 3.1.1 5 5 */ 6 6 /* … … 8 8 Description: Shortcodes to create Google Content Experiments elements in a page 9 9 Author: Lon Koenig (Firebrand LLC) 10 Version: 3.1. 010 Version: 3.1.1 11 11 Author URI: //firebrand.net/ 12 12 … … 94 94 // we process the content before building the 95 95 // JavaScript so we know how many variants there are. 96 $processed_content = do_shortcode($content);96 $processed_content = trim( do_shortcode( shortcode_unautop($content) ) ); 97 97 98 98 … … 122 122 $outStr = 'no experiment ID set up'; 123 123 } else { 124 124 125 $outStr = '<div id="' . $variant_div .'"' 125 126 .' class="contentexperimentvariant"' … … 129 130 } 130 131 $outStr .= ">\n"; 131 $outStr .= do_shortcode($content);132 $outStr .= trim( do_shortcode( shortcode_unautop($content) ) ); 132 133 $outStr .= "</div>\n"; 133 134 return $outStr;
Note: See TracChangeset
for help on using the changeset viewer.