Making WordPress.org


Ignore:
Timestamp:
04/28/2016 02:37:01 PM (10 years ago)
Author:
ocean90
Message:

Make/Meetings: Whitespace cleanup.

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  
    1212if ( !class_exists('Meeting_Post_Type') ):
    1313class Meeting_Post_Type {
    14        
     14
    1515        protected static $instance = NULL;
    1616
     
    3535
    3636        public function meeting_add_custom_columns( $columns ) {
    37                 $columns = array_slice( $columns, 0, 1, true ) 
     37                $columns = array_slice( $columns, 0, 1, true )
    3838                        + array( 'team' => __('Team', 'wporg') )
    3939                        + array_slice( $columns, 1, null, true );
     
    6767                                                'value'=>array('weekly','monthly', '1'),
    6868                                                'compare'=>'NOT IN',
    69                                         ), 
     69                                        ),
    7070                                        array(
    7171                                                'key'=>'start_date',
     
    105105                        return str_replace( "'CURDATE()'", 'CURDATE()', $sql );
    106106                } );
    107        
     107
    108108        }
    109109
     
    152152        }
    153153
    154        
     154
    155155        public function register_meeting_post_type() {
    156156            $labels = array(
     
    209209                );
    210210        }
    211        
     211
    212212        function render_meta_boxes( $post ) {
    213213                wp_enqueue_script( 'jquery-ui-datepicker' );
     
    227227                wp_nonce_field( 'save_meeting_meta_'.$post->ID , 'meeting_nonce' );
    228228                ?>
    229                
     229
    230230                <p>
    231231                <label for="team"><?php _e( 'Team: ', 'wporg' ); ?>
     
    248248                        <label for="weekly"><?php _e( 'Weekly', 'wporg' ); ?></label>
    249249                        <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>
    251251                        <input type="radio" name="recurring" value="monthly" class="regular-radio" <?php checked( $recurring, 'monthly' ); ?>>
    252252                </label>
     
    287287
    288288                global $post;
    289                
     289
    290290                // Verify nonce
    291291                if ( !isset( $_POST['meeting_nonce'] ) || !wp_verify_nonce( $_POST['meeting_nonce'], 'save_meeting_meta_'.$post_id ) ) {
     
    314314                $link = ! isset( $meta['link'][0] ) ? '' : $meta['link'][0];
    315315                $location = ! isset( $meta['location'][0] ) ? '' : $meta['location'][0];
    316                
     316
    317317                $meta['team'] = ( isset( $_POST['team'] ) ? esc_textarea( $_POST['team'] ) : '' );
    318318                $meta['start_date'] = ( isset( $_POST['start_date'] ) ? esc_textarea( $_POST['start_date'] ) : '' );
Note: See TracChangeset for help on using the changeset viewer.