Plugin Directory

Changeset 427504


Ignore:
Timestamp:
08/23/2011 10:54:37 AM (15 years ago)
Author:
BenIrvin
Message:
 
Location:
admin-dashboard-site-notes/tags/0.9.2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin-dashboard-site-notes/tags/0.9.2/dashboard-site-notes.php

    r426812 r427504  
    8282   
    8383    public static function has_dashboard_notes() {
    84         $posts = self::get_notes();
     84        $posts = self::get_notes_by_parent(0);
    8585        if(count($posts)) {
    8686            return true;
     
    192192            $wheres_arr[] = " (meta_key = '{$pre}role_{$role}' AND meta_value = '1') ";
    193193        }
    194         $where_str = implode(" AND ", $wheres_arr);
     194        $where_str = implode(" OR ", $wheres_arr);
    195195        if(!strlen($where_str)) {
    196196            return;
     
    218218                AND {$wpdb->posts}.post_type = '%s'
    219219                AND (   
    220                     ({$wpdb->postmeta}.meta_key = '%s'AND {$wpdb->postmeta}.meta_value = '1')
     220                    ({$wpdb->postmeta}.meta_key = '%s' AND {$wpdb->postmeta}.meta_value = '1')
    221221                    OR
    222222                    ({$wpdb->postmeta}.meta_key = '%s' AND {$wpdb->postmeta}.meta_value = '1')
     
    240240        $posts = self::get_notes();
    241241        $output = '';
    242         if($count($posts)) {
     242        if(count($posts)) {
    243243            foreach($posts as $post) {
    244244                $t = $post->post_title;
  • admin-dashboard-site-notes/tags/0.9.2/readme.txt

    r426816 r427504  
    55Requires at least: 3.0
    66Tested up to: 3.2.1
    7 Stable tag: 0.9.2
     7Stable tag: 0.9.2.1
    88
    99Add notes about the site to various admin locations, as well as compile them into an instruction manual.
     
    2828
    2929== Changelog ==
     30= 0.9.2.1 =
     31* fixed fatal error bug and display bug
     32* fixed fatal error bug and display bug
     33* fixed incorrect screenshots
     34
    3035= 0.9.2 =
    3136* added translation support and English .pot file
    32 * added donate links
    3337* hierarchy now takes effect on notes on dashboard
    3438* if excerpt is available, use that in notices/dashboard, with full text appearing only in manual
    3539* major optimization by changing note querying method and removing other stupidity
    3640* stored 'everywhere' checkboxes server-side so they work without javascript enabled
    37 * added GPLv3 license document
    3841* improved auto ("everywhere") checkbox functionality
    3942
Note: See TracChangeset for help on using the changeset viewer.