Making WordPress.org

Changeset 2812


Ignore:
Timestamp:
03/25/2016 04:39:12 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Only show notes to network admins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r2804 r2812  
    111111        );
    112112
    113         add_meta_box(
    114             'wcpt_log',
    115             'Log',
    116             'wcpt_log_metabox',
    117             WCPT_POST_TYPE_ID,
    118             'advanced',
    119             'low'
    120         );
     113        // Notes are private, so only show them to network admins
     114        if ( current_user_can( 'manage_network' ) ) {
     115            add_meta_box(
     116                'wcpt_log',
     117                'Log',
     118                'wcpt_log_metabox',
     119                WCPT_POST_TYPE_ID,
     120                'advanced',
     121                'low'
     122            );
     123        }
    121124
    122125        // Remove core's submitdiv.
Note: See TracChangeset for help on using the changeset viewer.