Changeset 7608
- Timestamp:
- 08/13/2018 01:41:42 PM (8 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt
- Files:
-
- 2 edited
-
wcpt-event/class-event-admin.php (modified) (3 diffs)
-
wcpt-meetup/class-meetup-admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php
r7607 r7608 20 20 */ 21 21 public function __construct() { 22 22 23 add_action( 'add_meta_boxes', array( $this, 'metabox' ) ); 23 24 … … 151 152 } 152 153 154 if ( ! current_user_can( 'wordcamp_wrangle_wordcamps' ) ) { 155 return; 156 } 157 153 158 add_meta_box( 154 159 'wcpt_log', … … 167 172 public function add_note_metabox() { 168 173 if ( ! current_user_can( $this->get_edit_capability() ) ) { 174 return; 175 } 176 177 if ( ! current_user_can( 'wordcamp_wrangle_wordcamps' ) ) { 169 178 return; 170 179 } -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/class-meetup-admin.php
r7607 r7608 186 186 'advanced' 187 187 ); 188 189 if ( current_user_can( 'wcpt_wrangle_meetups' ) ) {190 add_meta_box(191 'wcpt_meetup_notes',192 __( 'Add Private Note', 'wcpt' ),193 array( $this, 'wcpt_notes_metabox' ),194 Meetup_Application::POST_TYPE,195 'advanced'196 );197 198 add_meta_box(199 'wcpt_meetup_logs',200 __( 'Logs', 'wcpt' ),201 array( $this, 'wcpt_logs_metabox' ),202 Meetup_Application::POST_TYPE,203 'advanced'204 );205 206 }207 188 } 208 189
Note: See TracChangeset
for help on using the changeset viewer.