Plugin Directory

Changeset 456047


Ignore:
Timestamp:
10/26/2011 06:44:59 PM (14 years ago)
Author:
elubow
Message:

Update code to 0.5.6

Location:
simplereach-slide/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simplereach-slide/trunk/readme.txt

    r455311 r456047  
    66Requires at least: 2.7
    77Tested up to: 3.2.1
    8 Stable tag: 0.5.5
     8Stable tag: 0.5.6
    99
    1010The Slide recommends related posts from within your site on a widget that "slides" in at the bottom of the page.
     
    5050
    5151== Upgrade Notice ==
     52* Version 0.5.5 has a bug that will prevent The Slide from loading when upgrading from some older versions of the plugin.
    5253* Do not use versions 0.5.0 - 0.5.2. There is a bug in tags that can prevent the page from loading properly.
    5354
     
    5758
    5859== Changelog ==
     60
     61= 0.5.6 =
     62* Handle some edge cases with options conversions
    5963
    6064= 0.5.5 =
  • simplereach-slide/trunk/srslide.php

    r455311 r456047  
    44    Plugin URI: https://www.simplereach.com
    55    Description: After installation, you must click '<a href='options-general.php?page=SimpleReach-Slide'>Settings &rarr; SimpleReach Slide</a>' to turn on The Slide.
    6     Version: 0.5.5
     6    Version: 0.5.6
    77    Author: SimpleReach
    88    Author URI: https://www.simplereach.com
    99    */
    1010
    11 define('SRSLIDE_PLUGIN_VERSION', '0.5.5');
     11define('SRSLIDE_PLUGIN_VERSION', '0.5.6');
    1212define('SRSLIDE_PLUGIN_DIR', dirname(__FILE__));
    1313define('SRSLIDE_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    7878
    7979// Get the JS ready to go
    80 $offset = get_option('srslide_style_element_bottom');
    81 $offsetTag = (!empty($offset)) ? 'offset: ' . $offset . ',' : '';
     80// Grab offset and strip off any non-digits
     81$offset = preg_replace('/\D/', '', get_option('srslide_style_element_bottom'));
     82$offsetTag = (!empty($offset)) ? 'offset: \'' . $offset . '\',' : '';
    8283
    8384$rv = <<< SRSLIDE_SCRIPT_TAG
Note: See TracChangeset for help on using the changeset viewer.