Changeset 427504
- Timestamp:
- 08/23/2011 10:54:37 AM (15 years ago)
- Location:
- admin-dashboard-site-notes/tags/0.9.2
- Files:
-
- 4 edited
-
dashboard-site-notes.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
admin-dashboard-site-notes/tags/0.9.2/dashboard-site-notes.php
r426812 r427504 82 82 83 83 public static function has_dashboard_notes() { 84 $posts = self::get_notes ();84 $posts = self::get_notes_by_parent(0); 85 85 if(count($posts)) { 86 86 return true; … … 192 192 $wheres_arr[] = " (meta_key = '{$pre}role_{$role}' AND meta_value = '1') "; 193 193 } 194 $where_str = implode(" AND", $wheres_arr);194 $where_str = implode(" OR ", $wheres_arr); 195 195 if(!strlen($where_str)) { 196 196 return; … … 218 218 AND {$wpdb->posts}.post_type = '%s' 219 219 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') 221 221 OR 222 222 ({$wpdb->postmeta}.meta_key = '%s' AND {$wpdb->postmeta}.meta_value = '1') … … 240 240 $posts = self::get_notes(); 241 241 $output = ''; 242 if( $count($posts)) {242 if(count($posts)) { 243 243 foreach($posts as $post) { 244 244 $t = $post->post_title; -
admin-dashboard-site-notes/tags/0.9.2/readme.txt
r426816 r427504 5 5 Requires at least: 3.0 6 6 Tested up to: 3.2.1 7 Stable tag: 0.9.2 7 Stable tag: 0.9.2.1 8 8 9 9 Add notes about the site to various admin locations, as well as compile them into an instruction manual. … … 28 28 29 29 == 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 30 35 = 0.9.2 = 31 36 * added translation support and English .pot file 32 * added donate links33 37 * hierarchy now takes effect on notes on dashboard 34 38 * if excerpt is available, use that in notices/dashboard, with full text appearing only in manual 35 39 * major optimization by changing note querying method and removing other stupidity 36 40 * stored 'everywhere' checkboxes server-side so they work without javascript enabled 37 * added GPLv3 license document38 41 * improved auto ("everywhere") checkbox functionality 39 42
Note: See TracChangeset
for help on using the changeset viewer.