Changeset 1536950
- Timestamp:
- 11/20/2016 05:05:02 AM (9 years ago)
- Location:
- peters-post-notes/trunk
- Files:
-
- 2 edited
-
peters_post_notes.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
peters-post-notes/trunk/peters_post_notes.php
r1529249 r1536950 5 5 Description: Add notes on the "edit post" and "edit page" screens' sidebars, as well as general notes on the dashboard, in WordPress 2.8 and up. When used with Peter's Collaboration E-mails 1.2 and up, the notes are sent along with the e-mails in the collaboration workflow. 6 6 Author: Peter Keung 7 Version: 1.6. 27 Version: 1.6.3 8 8 Change Log: 9 2016-11-19 1.6.3: Bug fixes: do not show private notes in "Latest notes" column; fix capability check when showing "Edit" links. (Thanks Alex!) 9 10 2016-11-06 1.6.2: Fix query bug for users with no associated posts. (Thanks Alex!) Also remove code warning when displaying an unlimited number of notes. 10 11 2016-02-13 1.6.1: Improve UX by wrapping checkboxes inside labels. (Thanks Hrohh!) … … 55 56 $ppn_db_notes = $wpdb->prefix . 'collabnotes'; 56 57 $ppn_db_generalnotes = $wpdb->prefix . 'generalnotes'; 57 $ppn_version = '1.6. 2';58 $ppn_version = '1.6.3'; 58 59 59 60 /* -------------------------------------------- … … 75 76 { 76 77 foreach( $super_caps as $super_cap ) { 77 if( in_array( $super_cap, $user->allcaps ))78 if( array_key_exists( $super_cap, $user->allcaps ) && $user->allcaps[$super_cap] ) 78 79 { 79 80 $is_super = true; … … 153 154 { 154 155 case 'ppn_notes': 155 $latest_note = $wpdb->get_row( 'SELECT noteid, notecontent, author, notetime FROM ' . $ppn_db_notes . ' WHERE postid = ' . $post->ID . ' ORDER BY notetime DESC LIMIT 1', OBJECT );156 $latest_note = $wpdb->get_row( 'SELECT noteid, notecontent, author, notetime FROM ' . $ppn_db_notes . ' WHERE postid = ' . $post->ID . ' AND personal = 0 ORDER BY notetime DESC LIMIT 1', OBJECT ); 156 157 if( $latest_note ) 157 158 { -
peters-post-notes/trunk/readme.txt
r1529249 r1536950 52 52 53 53 == Changelog == 54 55 = 1.6.3 = 56 * 2016-11-19: Bug fixes: do not show private notes in "Latest notes" column; fix capability check when showing "Edit" links. (Thanks Alex!) 54 57 55 58 = 1.6.2 =
Note: See TracChangeset
for help on using the changeset viewer.