Changeset 490592
- Timestamp:
- 01/16/2012 01:05:43 PM (14 years ago)
- Location:
- abtest/trunk
- Files:
-
- 3 edited
-
abtest.php (modified) (2 diffs)
-
includes/install.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
abtest/trunk/abtest.php
r490378 r490592 3 3 Plugin Name: A/B Test for WordPress 4 4 Plugin URI: http://lassebunk.dk/plugins/abtest/ 5 Version: 1.0. 35 Version: 1.0.4 6 6 Description: Easily perform A/B tests on any WordPress site. 7 7 Author: Lasse Bunk … … 9 9 */ 10 10 11 // Start the session 11 12 session_start(); 13 14 // We check database migrations on each call to ensure migrations when the plugin is updated 12 15 require 'includes/install.php'; 13 14 register_activation_hook(__FILE__, 'abtest_install'); 16 abtest_migrate_if_needed(); 17 18 // Ensure that widgets can also contain A/B Test shortcodes 15 19 add_filter('widget_text', 'do_shortcode'); 16 20 wp_enqueue_script("jquery"); 17 21 22 // Set up the viewed variations and hit goals queue 18 23 $abtest_viewed_variations = array(); 19 24 $abtest_hit_goals = array(); -
abtest/trunk/includes/install.php
r490307 r490592 1 1 <?php 2 function abtest_install() { 3 abtest_migrate(); 4 } 5 6 function abtest_migrate() { 2 function abtest_migrate_if_needed() { 7 3 global $wpdb; 8 4 … … 11 7 $needed_migration = count($migs); 12 8 13 for ($i = $current_migration; $i < $needed_migration; $i++) { 14 $mig = $migs[$i]; 15 $wpdb->query($mig); 16 } 9 if ($current_migration != $needed_migration) { 10 for ($i = $current_migration; $i < $needed_migration; $i++) { 11 $mig = $migs[$i]; 12 $wpdb->query($mig); 13 } 17 14 18 if ($current_migration == 0) { 19 add_option('abtest_current_migration', $needed_migration); 20 } else { 21 update_option('abtest_current_migration', $needed_migration); 15 if ($current_migration == 0) { 16 add_option('abtest_current_migration', $needed_migration); 17 } else { 18 update_option('abtest_current_migration', $needed_migration); 19 } 22 20 } 23 21 } -
abtest/trunk/readme.txt
r490580 r490592 3 3 Donate link: http://lassebunk.dk/donate/ 4 4 Tags: ab testing, split testing, multivariate testing, themes, content, stylesheets, javascripts 5 Stable tag: 1.0. 35 Stable tag: 1.0.4 6 6 7 7 A/B split testing for WordPress made easy. … … 48 48 == Changelog == 49 49 50 = 1.0.0 = 51 * Initial version. 50 = 1.0.4 = 51 * Support for updating the plugin (checking database version on each call). 52 53 = 1.0.3 = 54 * Support for database table prefixes (like <code>wp_</code>). 55 56 = 1.0.2 = 57 * Support for IP filters, e.g. to filter out visits and conversions from your home or office IPs. 52 58 53 59 = 1.0.1 = … … 55 61 * Support for split testing themes, e.g. which theme performs better. 56 62 57 = 1.0.2 = 58 * Support for IP filters, e.g. to filter out visits and conversions from your home or office IPs. 59 60 = 1.0.3 = 61 * Support for database table prefixes (like <code>wp_</code>). 63 = 1.0.0 = 64 * Initial version. 62 65 63 66 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.