Changeset 1529248
- Timestamp:
- 11/06/2016 07:13:31 PM (9 years ago)
- Location:
- peters-post-notes/trunk
- Files:
-
- 2 edited
-
peters_post_notes.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
peters-post-notes/trunk/peters_post_notes.php
r1349985 r1529248 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. 17 Version: 1.6.2 8 8 Change Log: 9 2016-11-06 1.6.2: Fix query bug for users with no associated posts. 9 10 2016-02-13 1.6.1: Improve UX by wrapping checkboxes inside labels. (Thanks Hrohh!) 10 11 2016-02-12 1.6.0: Support private notes on posts. … … 54 55 $ppn_db_notes = $wpdb->prefix . 'collabnotes'; 55 56 $ppn_db_generalnotes = $wpdb->prefix . 'generalnotes'; 56 $ppn_version = '1.6. 1';57 $ppn_version = '1.6.2'; 57 58 58 59 /* -------------------------------------------- … … 556 557 $ppn_num_notes = ' LIMIT ' . $ppn_num_notes_limit; 557 558 } 558 559 $ppn_newest_posts = $wpdb->get_results( 'SELECT postid, author, notetime, notecontent, personal FROM ' . $ppn_db_notes . $ppn_query_options . ' AND ( personal = 0 OR author = ' . $current_user->ID . ' ) ORDER BY notetime DESC' . $ppn_num_notes, OBJECT ); 559 $ppn_newest_posts_query = 'SELECT postid, author, notetime, notecontent, personal FROM ' . $ppn_db_notes . $ppn_query_options; 560 if( $ppn_query_options ) 561 { 562 $ppn_newest_posts_query .= ' AND '; 563 } 564 else 565 { 566 $ppn_newest_posts_query .= ' WHERE '; 567 } 568 $ppn_newest_posts_query .= '( personal = 0 OR author = ' . $current_user->ID . ' ) ORDER BY notetime DESC' . $ppn_num_notes; 569 $ppn_newest_posts = $wpdb->get_results( $ppn_newest_posts_query, OBJECT ); 560 570 } 561 571 -
peters-post-notes/trunk/readme.txt
r1349985 r1529248 4 4 Tags: post, notification, admin, collaboration, workflow, posts 5 5 Requires at least: 3.2 6 Tested up to: 4. 46 Tested up to: 4.7 7 7 Stable tag: trunk 8 8 … … 52 52 53 53 == Changelog == 54 55 = 1.6.2 = 56 * 2016-11-06: Fix query bug for users with no associated posts. (Thanks Alex!) 54 57 55 58 = 1.6.1 =
Note: See TracChangeset
for help on using the changeset viewer.