Plugin Directory

Changeset 718003


Ignore:
Timestamp:
05/24/2013 10:40:16 PM (13 years ago)
Author:
segmentio
Message:

0.5.6

Location:
segmentio/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • segmentio/trunk/analytics-wordpress.php

    r715796 r718003  
    55Description: The hassle-free way to integrate any analytics service into your Wordpress site.
    66
    7 Version: 0.5.5
     7Version: 0.5.6
    88License: GPLv2
    99
     
    2525
    2626  // Render the Segment.io Javascript snippet.
    27   public function initialize($settings, $ignore = false) {
     27  public static function initialize($settings, $ignore = false) {
    2828    // An API key is required.
    2929    if (!isset($settings['api_key']) || $settings['api_key'] == '') return;
     
    3333
    3434  // 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()) {
    3636    // A user ID is required.
    3737    if (!$user_id) return;
     
    4444
    4545  // Render a Javascript `track` call.
    46   public function track($event, $properties = array(), $options = array()) {
     46  public static function track($event, $properties = array(), $options = array()) {
    4747    // An event is required.
    4848    if (!$event) return;
     
    6262
    6363  const SLUG    = 'analytics';
    64   const VERSION = '0.5.5';
     64  const VERSION = '0.5.6';
    6565
    6666  private $option   = 'analytics_wordpress_options';
  • segmentio/trunk/readme.txt

    r715796 r718003  
    44Requires at least: 3.4
    55Tested up to: 3.5.1
    6 Stable tag: 0.5.5
     6Stable tag: 0.5.6
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 Analytic for WordPress is the easiest way to integrate analytics into your WordPress site.
     10Analytics for WordPress is the easiest way to integrate analytics into your WordPress site.
    1111
    1212
     
    5555== Changelog ==
    5656
     57= 0.5.6 =
     58* Fixed a bug with non-static methods in newer versions on PHP.
     59
    5760= 0.5.5 =
    5861* Fixed a bug where admins weren't being properly ignored.
  • segmentio/trunk/templates/settings.php

    r680923 r718003  
    6060              <option value="2"<?php if ($settings['ignore_user_level'] == 2) echo ' selected="selected"'; ?>>Authors and Up</option>
    6161              <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>
    6363            </select>
    6464            <p class="description">Users of the role you select and higher will
Note: See TracChangeset for help on using the changeset viewer.