WordPress.org

Plugin Directory

Changeset 469046


Ignore:
Timestamp:
11/29/11 11:30:16 (2 years ago)
Author:
sanchothefat
Message:

v1.0.5

3.3 compat ready, better checking via spot_post_exists()

Location:
spots/trunk
Files:
2 edited

Legend:

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

    r463187 r469046  
    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.4 
     7Version: 1.0.5 
    88Author URI: http://interconnectit.com 
    99*/ 
     
    924924        $post_date = stripslashes( sanitize_post_field( 'post_date', $date, 0, 'db' ) ); 
    925925 
    926         $query = "SELECT ID FROM $wpdb->posts WHERE 1=1"; 
    927         $args = array(); 
     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 ); 
    928928 
    929929        if ( !empty ( $date ) ) { 
  • spots/trunk/readme.txt

    r462749 r469046  
    55Requires at least: 3.0 
    66Tested up to: 3.3 
    7 Stable tag: 1.0.3 
     7Stable tag: 1.0.5 
    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 
    129132= 1.0.4 = 
    130133* Added: Made the currently selected spot more obvious when in the spot selector MCE popup. 
Note: See TracChangeset for help on using the changeset viewer.