Changeset 718003
- Timestamp:
- 05/24/2013 10:40:16 PM (13 years ago)
- Location:
- segmentio/trunk
- Files:
-
- 3 edited
-
analytics-wordpress.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
-
templates/settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
segmentio/trunk/analytics-wordpress.php
r715796 r718003 5 5 Description: The hassle-free way to integrate any analytics service into your Wordpress site. 6 6 7 Version: 0.5. 57 Version: 0.5.6 8 8 License: GPLv2 9 9 … … 25 25 26 26 // Render the Segment.io Javascript snippet. 27 public function initialize($settings, $ignore = false) {27 public static function initialize($settings, $ignore = false) { 28 28 // An API key is required. 29 29 if (!isset($settings['api_key']) || $settings['api_key'] == '') return; … … 33 33 34 34 // Render a Javascript `identify` call. 35 public function identify($user_id, $traits = array(), $options = array()) {35 public static function identify($user_id, $traits = array(), $options = array()) { 36 36 // A user ID is required. 37 37 if (!$user_id) return; … … 44 44 45 45 // Render a Javascript `track` call. 46 public function track($event, $properties = array(), $options = array()) {46 public static function track($event, $properties = array(), $options = array()) { 47 47 // An event is required. 48 48 if (!$event) return; … … 62 62 63 63 const SLUG = 'analytics'; 64 const VERSION = '0.5. 5';64 const VERSION = '0.5.6'; 65 65 66 66 private $option = 'analytics_wordpress_options'; -
segmentio/trunk/readme.txt
r715796 r718003 4 4 Requires at least: 3.4 5 5 Tested up to: 3.5.1 6 Stable tag: 0.5. 56 Stable tag: 0.5.6 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Analytic for WordPress is the easiest way to integrate analytics into your WordPress site.10 Analytics for WordPress is the easiest way to integrate analytics into your WordPress site. 11 11 12 12 … … 55 55 == Changelog == 56 56 57 = 0.5.6 = 58 * Fixed a bug with non-static methods in newer versions on PHP. 59 57 60 = 0.5.5 = 58 61 * Fixed a bug where admins weren't being properly ignored. -
segmentio/trunk/templates/settings.php
r680923 r718003 60 60 <option value="2"<?php if ($settings['ignore_user_level'] == 2) echo ' selected="selected"'; ?>>Authors and Up</option> 61 61 <option value="1"<?php if ($settings['ignore_user_level'] == 1) echo ' selected="selected"'; ?>>Contributors and Up</option> 62 <option value="0"<?php if ($settings['ignore_user_level'] == 0) echo ' selected="selected"'; ?>> All Logged-in Users</option>62 <option value="0"<?php if ($settings['ignore_user_level'] == 0) echo ' selected="selected"'; ?>>Everyone!</option> 63 63 </select> 64 64 <p class="description">Users of the role you select and higher will
Note: See TracChangeset
for help on using the changeset viewer.