Changeset 456047
- Timestamp:
- 10/26/2011 06:44:59 PM (14 years ago)
- Location:
- simplereach-slide/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
srslide.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simplereach-slide/trunk/readme.txt
r455311 r456047 6 6 Requires at least: 2.7 7 7 Tested up to: 3.2.1 8 Stable tag: 0.5. 58 Stable tag: 0.5.6 9 9 10 10 The Slide recommends related posts from within your site on a widget that "slides" in at the bottom of the page. … … 50 50 51 51 == 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. 52 53 * Do not use versions 0.5.0 - 0.5.2. There is a bug in tags that can prevent the page from loading properly. 53 54 … … 57 58 58 59 == Changelog == 60 61 = 0.5.6 = 62 * Handle some edge cases with options conversions 59 63 60 64 = 0.5.5 = -
simplereach-slide/trunk/srslide.php
r455311 r456047 4 4 Plugin URI: https://www.simplereach.com 5 5 Description: After installation, you must click '<a href='options-general.php?page=SimpleReach-Slide'>Settings → SimpleReach Slide</a>' to turn on The Slide. 6 Version: 0.5. 56 Version: 0.5.6 7 7 Author: SimpleReach 8 8 Author URI: https://www.simplereach.com 9 9 */ 10 10 11 define('SRSLIDE_PLUGIN_VERSION', '0.5. 5');11 define('SRSLIDE_PLUGIN_VERSION', '0.5.6'); 12 12 define('SRSLIDE_PLUGIN_DIR', dirname(__FILE__)); 13 13 define('SRSLIDE_PLUGIN_URL', plugin_dir_url(__FILE__)); … … 78 78 79 79 // 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 . '\',' : ''; 82 83 83 84 $rv = <<< SRSLIDE_SCRIPT_TAG
Note: See TracChangeset
for help on using the changeset viewer.