Plugin Directory

Changeset 1536950


Ignore:
Timestamp:
11/20/2016 05:05:02 AM (9 years ago)
Author:
pkthree
Message:

Peter's Post Notes 1.6.3

Location:
peters-post-notes/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • peters-post-notes/trunk/peters_post_notes.php

    r1529249 r1536950  
    55Description: 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.
    66Author: Peter Keung
    7 Version: 1.6.2
     7Version: 1.6.3
    88Change Log:
     92016-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!)
    9102016-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.
    10112016-02-13  1.6.1: Improve UX by wrapping checkboxes inside labels. (Thanks Hrohh!)
     
    5556$ppn_db_notes = $wpdb->prefix . 'collabnotes';
    5657$ppn_db_generalnotes = $wpdb->prefix . 'generalnotes';
    57 $ppn_version = '1.6.2';
     58$ppn_version = '1.6.3';
    5859
    5960/* --------------------------------------------
     
    7576        {
    7677            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] )
    7879                {
    7980                    $is_super = true;
     
    153154        {
    154155            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 );
    156157                if( $latest_note )
    157158                {
  • peters-post-notes/trunk/readme.txt

    r1529249 r1536950  
    5252
    5353== 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!)
    5457
    5558= 1.6.2 =
Note: See TracChangeset for help on using the changeset viewer.