WordPress.org

Plugin Directory

Changeset 469123


Ignore:
Timestamp:
11/29/11 15:48:22 (2 years ago)
Author:
sanchothefat
Message:

Changed minor release back to 1.0.4 as it hadn't been tagged yet.

Location:
spots/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • spots/trunk/icit-spots.php

    r469046 r469123  
    55Description: Spots are a post type that you can use to add static text, html, images and videos etc... anywhere on your site that you don't want appearing in your site map or search results. You can call a spot via a template tag, shortcode or use the widget. 
    66Author: Robert O'Rourke 
    7 Version: 1.0.5 
     7Version: 1.0.4 
    88Author URI: http://interconnectit.com 
    99*/ 
     
    1919if ( ! class_exists( 'icit_spots' ) ) { 
    2020 
    21     add_action( 'init', array( 'icit_spots', '_init' ), 1 ); // This creates all the main plugin object and the button object. 
     21    add_action( 'init', array( 'icit_spots', '_init' ), 1 ); // This creates the main plugin object and the button object. 
    2222 
    2323    class icit_spots { 
     
    626626                return; 
    627627 
    628             if ( empty( $post ) ) // Stops wanrings being thrown on the widget page. 
     628            if ( empty( $post ) ) // Stops warnings being thrown on the widget page. 
    629629                $post = (object) array( 'post_status' => 'publish', 'ID' => -1 ); 
    630630 
     
    924924        $post_date = stripslashes( sanitize_post_field( 'post_date', $date, 0, 'db' ) ); 
    925925 
    926         $query = "SELECT ID FROM $wpdb->posts WHERE 1=1 AND post_type = %s"; // force checking of spots only 
    927         $args = array( SPOTS_POST_TYPE ); 
     926        $query = "SELECT ID FROM $wpdb->posts WHERE 1=1 AND post_type = '" . SPOTS_POST_TYPE . "'"; // force checking of spots only 
     927        $args = array(); 
    928928 
    929929        if ( !empty ( $date ) ) { 
     
    10441044        ob_start( ); 
    10451045 
    1046         do_action( 'spot-before' ); 
     1046        do_action( 'spot-before', $post ); 
    10471047 
    10481048        if ( ! empty( $template ) ) { 
     
    10541054        } 
    10551055 
    1056         do_action( 'spot-after' ); 
     1056        do_action( 'spot-after', $post ); 
    10571057 
    10581058        $output = ob_get_clean( ); 
  • spots/trunk/readme.txt

    r469046 r469123  
    55Requires at least: 3.0 
    66Tested up to: 3.3 
    7 Stable tag: 1.0.5 
     7Stable tag: 1.0.4 
    88 
    99Content manage those little snippets of text that you need across your WordPress site and in widgets properly. Forget the text widget. 
     
    127127== Changelog == 
    128128 
    129 = 1.0.5 = 
    130 * Updated `spot_post_exists()` to only check the spots post type to avoid displaying other content of the same name. 
    131  
    132129= 1.0.4 = 
     130* Fixed: `spot_post_exists()` to only check the spots post type to avoid displaying other content of the same name. 
    133131* Added: Made the currently selected spot more obvious when in the spot selector MCE popup. 
    134132* Fixed: TinyMCE with WordPress 3.3 would leave an editor at the bottom of the widget page. 
     
    166164= 1.0.4 = 
    167165Fixed TinyMCE in the widget for WordPress 3.3, fixed drag and drop of a widget would break TinyMCE also several other bug fixes. Also made the currently selected spot more obvious when in the spot selector MCE pop-up. 
     166Fixed problem with spots sharing a name with a page or post resulting in the wrong content being displayed. 
Note: See TracChangeset for help on using the changeset viewer.