Changeset 3031
- Timestamp:
- 04/28/2016 02:37:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php
r2002 r3031 12 12 if ( !class_exists('Meeting_Post_Type') ): 13 13 class Meeting_Post_Type { 14 14 15 15 protected static $instance = NULL; 16 16 … … 35 35 36 36 public function meeting_add_custom_columns( $columns ) { 37 $columns = array_slice( $columns, 0, 1, true ) 37 $columns = array_slice( $columns, 0, 1, true ) 38 38 + array( 'team' => __('Team', 'wporg') ) 39 39 + array_slice( $columns, 1, null, true ); … … 67 67 'value'=>array('weekly','monthly', '1'), 68 68 'compare'=>'NOT IN', 69 ), 69 ), 70 70 array( 71 71 'key'=>'start_date', … … 105 105 return str_replace( "'CURDATE()'", 'CURDATE()', $sql ); 106 106 } ); 107 107 108 108 } 109 109 … … 152 152 } 153 153 154 154 155 155 public function register_meeting_post_type() { 156 156 $labels = array( … … 209 209 ); 210 210 } 211 211 212 212 function render_meta_boxes( $post ) { 213 213 wp_enqueue_script( 'jquery-ui-datepicker' ); … … 227 227 wp_nonce_field( 'save_meeting_meta_'.$post->ID , 'meeting_nonce' ); 228 228 ?> 229 229 230 230 <p> 231 231 <label for="team"><?php _e( 'Team: ', 'wporg' ); ?> … … 248 248 <label for="weekly"><?php _e( 'Weekly', 'wporg' ); ?></label> 249 249 <input type="radio" name="recurring" value="weekly" class="regular-radio" <?php checked( $recurring, 'weekly' ); ?>> 250 <label for="monthly"><?php _e( 'Monthly', 'wporg' ); ?></label> 250 <label for="monthly"><?php _e( 'Monthly', 'wporg' ); ?></label> 251 251 <input type="radio" name="recurring" value="monthly" class="regular-radio" <?php checked( $recurring, 'monthly' ); ?>> 252 252 </label> … … 287 287 288 288 global $post; 289 289 290 290 // Verify nonce 291 291 if ( !isset( $_POST['meeting_nonce'] ) || !wp_verify_nonce( $_POST['meeting_nonce'], 'save_meeting_meta_'.$post_id ) ) { … … 314 314 $link = ! isset( $meta['link'][0] ) ? '' : $meta['link'][0]; 315 315 $location = ! isset( $meta['location'][0] ) ? '' : $meta['location'][0]; 316 316 317 317 $meta['team'] = ( isset( $_POST['team'] ) ? esc_textarea( $_POST['team'] ) : '' ); 318 318 $meta['start_date'] = ( isset( $_POST['start_date'] ) ? esc_textarea( $_POST['start_date'] ) : '' );
Note: See TracChangeset
for help on using the changeset viewer.