Plugin Directory

Changeset 458725


Ignore:
Timestamp:
11/02/2011 04:51:13 PM (14 years ago)
Author:
elubow
Message:

Update code to 0.5.7

Location:
simplereach-slide/trunk
Files:
3 edited

Legend:

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

    r456047 r458725  
    66Requires at least: 2.7
    77Tested up to: 3.2.1
    8 Stable tag: 0.5.6
     8Stable tag: 0.5.7
    99
    1010The Slide recommends related posts from within your site on a widget that "slides" in at the bottom of the page.
     
    5858
    5959== Changelog ==
     60
     61= 0.5.7 =
     62* Don't show Slide on attachment pages
    6063
    6164= 0.5.6 =
  • simplereach-slide/trunk/srslide.php

    r456047 r458725  
    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.6
     6    Version: 0.5.7
    77    Author: SimpleReach
    88    Author URI: https://www.simplereach.com
    99    */
    1010
    11 define('SRSLIDE_PLUGIN_VERSION', '0.5.6');
     11define('SRSLIDE_PLUGIN_VERSION', '0.5.7');
    1212define('SRSLIDE_PLUGIN_DIR', dirname(__FILE__));
    1313define('SRSLIDE_PLUGIN_URL', plugin_dir_url(__FILE__));
     
    2525function srslide_insert_slide($content)
    2626{
    27     // static var to ensure slide is only inserted once
    28     static $inserted = 0;
    29     if ($inserted) {
    30         return $content;
    31     }
    3227    global $post;
    3328    $post_id = $post;
     
    4136        $recommend_pages = false;
    4237    }
    43     if (!is_single() && !is_page()) {
     38    if (!is_singular() || is_attachment()) { // Don't show slide on attachment pages
    4439        return $content;
    4540    }
     
    113108SRSLIDE_SCRIPT_TAG;
    114109
    115     // Since we are adding the tag to the content, we set the
    116     // $inserted static var
    117     $inserted = 1;
    118110    return $content . $rv;
    119111}
  • simplereach-slide/trunk/srslide_admin.php

    r455311 r458725  
    152152                    _e("Your login name must be a valid email address.  Please try again.");
    153153                } else if ($resp->{'error'} == 'Invalid password') {
    154                     _e("Your password must be at least 6 characters long not more than 100.  Please try again.");
     154                    _e("Your password must be at least 6 characters long not more than 100 alphanumeric characters long.  Please try again.");
    155155                } else if ($resp->{'error'} == 'Incorrect Timestamp') {
    156156                    _e("There was an error while you were attempting to register. Please try again or contact $supportLink if you believe you have received this message in error.", 'srslide');
Note: See TracChangeset for help on using the changeset viewer.