Plugin Directory

Changeset 422260


Ignore:
Timestamp:
08/11/2011 07:48:36 PM (15 years ago)
Author:
elubow
Message:

Objects and arrays properly interpreted

Location:
simplereach-slide/trunk
Files:
3 edited

Legend:

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

    r422192 r422260  
    66Requires at least: 2.7
    77Tested up to: 3.2.1
    8 Stable tag: 0.5.0
     8Stable tag: 0.5.1
    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 * None
     52* Do not use version 0.5.0. There is a bug in tags that can prevent the page from loading properly.
    5353
    5454== Screenshots ==
     
    5757
    5858== Changelog ==
     59
     60= 0.5.1 =
     61* Fixed bug relating to tag escaping
    5962
    6063= 0.5.0 =
  • simplereach-slide/trunk/srslide.php

    r422192 r422260  
    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.0
     6    Version: 0.5.1
    77    Author: SimpleReach
    88    Author URI: https://www.simplereach.com
    99    */
    1010
    11 define('SRSLIDE_PLUGIN_VERSION', '0.5.0');
     11define('SRSLIDE_PLUGIN_VERSION', '0.5.1');
    1212define('SRSLIDE_PLUGIN_URL', plugin_dir_url(__FILE__));
    1313define('SRSLIDE_PLUGIN_SUPPORT_EMAIL', 'support@simplereach.com');
     
    6767    }
    6868
     69    $SRSLIDE_PLUGIN_VERSION = SRSLIDE_PLUGIN_VERSION;
     70
    6971// Get the JS ready to go
    7072$rv = <<< SRSLIDE_SCRIPT_TAG
    71 <!-- SimpleReach Slide Plugin Version: ". {SRSLIDE_PLUGIN_VERSION} ." -->
     73<!-- SimpleReach Slide Plugin Version: {$SRSLIDE_PLUGIN_VERSION} -->
    7274<script type='text/javascript' id='simplereach-slide-tag'>
    7375  __spr_config = {
     
    100102
    101103/**
    102  * srslide_admin_init 
     104 * srslide_admin_init
    103105 * Inititalize admin / register and load srslide.css
    104  * 
     106 *
    105107 * @access public
    106108 * @return void
  • simplereach-slide/trunk/srslide_functions.php

    r422192 r422260  
    122122    if (empty($tags)) {
    123123        $wptags = wp_get_post_tags($post->ID);
    124     $tags = join(',', $wptags);
     124        $myTags = array();
     125        foreach ($wptags as $tag) {
     126            $myTags = (is_object($tag)) ? $tag->name : $tag;
     127        }
     128    $tags = join(',', $myTags);
    125129    }
    126130    return addslashes($tags);
Note: See TracChangeset for help on using the changeset viewer.