Plugin Directory

Changeset 389118


Ignore:
Timestamp:
05/25/2011 09:27:59 PM (15 years ago)
Author:
LesBessant
Message:

tagging version 2.1

Location:
list-drafts-widget
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • list-drafts-widget/tags/2.1/list-drafts.php

    r217525 r389118  
    44Plugin URI: http://losingit.me.uk/2010/03/14/list-drafts-widget-revisited
    55Description: A sidebar widget that lists the titles of draft posts
    6 Version: 2.0.1
     6Version: 2.1
    77Author: Les Bessant
    88Author URI: http://losingit.me.uk/
     
    1212/*
    1313List Drafts Widget:
    14 Copyright (c) 2008-2010 Les Bessant
     14Copyright (c) 2008-2011 Les Bessant
    1515
    1616This program is free software; you can redistribute it and/or modify
     
    9191*/
    9292global $wpdb;
    93 $my_drafts = $wpdb->get_results("SELECT post_title FROM $wpdb->posts WHERE post_status = 'draft'");
     93$my_drafts = $wpdb->get_results("SELECT post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft'");
    9494    if ($my_drafts) {
    9595
  • list-drafts-widget/tags/2.1/readme.txt

    r217525 r389118  
    33Tags: draft, drafts, sidebar, widget
    44Requires at least: 2.8
    5 Tested up to: 3.0-Alpha
    6 Stable tag: 2.0.1
     5Tested up to: 3.1.3
     6Stable tag: 2.1
    77
    88Outputs an unordered list of the titles of saved draft posts in a sidebar widget.
     
    3434
    3535== Changelog ==
     36= 2.1 =
     37* Bugfix: As menu items are a special kind of post, and can have a status of "Draft", under some circumstances these would be picked up as untitled posts by the widget. This version now checks for 'post_type' being "post", which will prevent this behaviour.
    3638
    3739= 2.0.1 =
  • list-drafts-widget/trunk/list-drafts.php

    r217525 r389118  
    44Plugin URI: http://losingit.me.uk/2010/03/14/list-drafts-widget-revisited
    55Description: A sidebar widget that lists the titles of draft posts
    6 Version: 2.0.1
     6Version: 2.1
    77Author: Les Bessant
    88Author URI: http://losingit.me.uk/
     
    1212/*
    1313List Drafts Widget:
    14 Copyright (c) 2008-2010 Les Bessant
     14Copyright (c) 2008-2011 Les Bessant
    1515
    1616This program is free software; you can redistribute it and/or modify
     
    9191*/
    9292global $wpdb;
    93 $my_drafts = $wpdb->get_results("SELECT post_title FROM $wpdb->posts WHERE post_status = 'draft'");
     93$my_drafts = $wpdb->get_results("SELECT post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft'");
    9494    if ($my_drafts) {
    9595
  • list-drafts-widget/trunk/readme.txt

    r217525 r389118  
    33Tags: draft, drafts, sidebar, widget
    44Requires at least: 2.8
    5 Tested up to: 3.0-Alpha
    6 Stable tag: 2.0.1
     5Tested up to: 3.1.3
     6Stable tag: 2.1
    77
    88Outputs an unordered list of the titles of saved draft posts in a sidebar widget.
     
    3434
    3535== Changelog ==
     36= 2.1 =
     37* Bugfix: As menu items are a special kind of post, and can have a status of "Draft", under some circumstances these would be picked up as untitled posts by the widget. This version now checks for 'post_type' being "post", which will prevent this behaviour.
    3638
    3739= 2.0.1 =
Note: See TracChangeset for help on using the changeset viewer.