Plugin Directory

Changeset 809945


Ignore:
Timestamp:
11/25/2013 06:55:56 AM (12 years ago)
Author:
cptup
Message:

version 1.4.2

Location:
captain-up/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • captain-up/trunk/README.md

    r789075 r809945  
    9595## Changelog
    9696
     97###### 1.4.2
     98
     99* Support for WordPress 3.7.1
     100
     101* Fixed issue with MU installs and language selection.
     102
    97103###### 1.4.1
    98104
  • captain-up/trunk/captainup.php

    r789075 r809945  
    44Plugin URI: http://www.captainup.com
    55Description: Add Game Mechanics to your site and increase your engagement and retention. 2 minutes install: Simply add your free Captain Up API Key and you are good to go. The plugin also adds widgets you can use to show leaderboards and activities within your site.
    6 Version: 1.4.1
     6Version: 1.4.2
    77Author: Captain Up Team
    88License: GPL2
     
    106106                                        var selected_language = "<?php echo get_option('captain-locale', 'en'); ?>";
    107107                                        $(function() {
     108                                            // Break execution if `web-available-languages` failed to
     109                                            // load on the page. In that odd case, only English will
     110                                            // be available for selection.
     111                                            if (! window.__cpt_available_languages) return;
     112
    108113                                            // Grab the language <select> options and empty it
    109114                                            var $select = $('select#captain-locale').empty();
     
    130135                                    <label for="captain-language">Language:</label>
    131136                                    <select id='captain-locale' name='captain-locale'>
    132                                         <option value='en'>English</option>
     137                                        <option value='en' selected>English</option>
    133138                                    </select>
    134139                                </div>
     
    240245    $valid_api_secret = preg_match("/^[0-9A-Fa-f]{64,64}$/", $api_secret) == 1;
    241246
    242     // Add a language suffix to the Embed Script, if the
    243     // captain-locale was not set it will return 'en'.
    244     $lang = "." . get_option('captain-locale', 'en');
     247    // Add a language suffix to the Embed Script.
     248    // get_option's default parameter only affects values which
     249    // were not already set in the database. So if an empty
     250    // string was saved, make sure to handle it gracefully.
     251    $current_lang = get_option('captain-locale', 'en');
     252    if (empty($current_lang)) $current_lang = 'en';
     253    $lang = "." . $current_lang;
    245254
    246255    // Grab the current user ID
  • captain-up/trunk/readme.txt

    r789075 r809945  
    33Tags: game-mechanics,captainup,gamification,engagement,comments,widget,plugin,twitter,facebook,google
    44Requires at least: 3.0.1
    5 Tested up to: 3.6.1
     5Tested up to: 3.7.1
    66Stable tag: trunk
    77License: GPLv2 or later
     
    1818You will need to associate your WordPress site with a free Captain Up account. If you don't have one yet - [sign up now](http://captainup.com/).
    1919
    20 **NEW**: Localization support for over 10 languages. Awesome shortcodes for adding the activity widget, the leaderboard widget and a sign up link inside your posts. Support for native WordPress comments. Support for differnet default leaderboards. CloudFlare issue resolved.
     20**NEW**: Two new level and badge sets to select from. Localization support for over 14 languages. Awesome shortcodes for adding the activity widget, the leaderboard widget and a sign up link inside your posts. Support for native WordPress comments. Support for differnet default leaderboards.
    2121
    2222**Features**:
     
    116116== Changelog ==
    117117
     118= 1.4.2 =
     119
     120* Support for WordPress 3.7.1
     121
     122* Fixed issue with MU installs and language selection.
     123
    118124= 1.4.1 =
    119125
Note: See TracChangeset for help on using the changeset viewer.