Making WordPress.org


Ignore:
Timestamp:
08/07/2016 12:11:37 AM (8 years ago)
Author:
iandunn
Message:

WordCamp Coming Soon Page: Trim trailing whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-coming-soon-page/classes/wccsp-settings.php

    r2186 r3780  
    2525
    2626    /**
    27      * Retrieves all of the settings from the database 
    28      * 
     27     * Retrieves all of the settings from the database
     28     *
    2929     * @return array
    3030     */
     
    3737            'image_id'                   => 0,
    3838        );
    39            
     39
    4040        $settings = shortcode_atts(
    4141            $defaults,
     
    4848    /**
    4949     * Register and enqueue the JavaScript we need for the Settings screen
    50      * 
     50     *
    5151     * @param string $screen
    5252     */
     
    5555            return;
    5656        }
    57        
     57
    5858        wp_register_script(
    5959            'wccsp-settings',
     
    9898        add_settings_section(
    9999            'wccsp_default',
    100             '', 
     100            '',
    101101            array( $this, 'markup_section_headers' ),
    102102            'wccsp_settings'
    103103        );
    104        
     104
    105105
    106106        add_settings_field(
     
    148148            array( 'label_for' => 'wccsp_image_id' )
    149149        );
    150        
     150
    151151
    152152        register_setting(
     
    193193            $new_settings['enabled'] = 'off';
    194194        }
    195        
     195
    196196        $new_settings['body_background_color']      = sanitize_text_field( $new_settings['body_background_color'] );
    197197        $new_settings['container_background_color'] = sanitize_text_field( $new_settings['container_background_color'] );
    198198        $new_settings['text_color']                 = sanitize_text_field( $new_settings['text_color'] );
    199        
     199
    200200        $new_settings['image_id'] = absint( $new_settings['image_id'] );
    201        
     201
    202202        return $new_settings;
    203203    }
     
    218218    public function render_admin_notices() {
    219219        $current_screen = get_current_screen();
    220        
     220
    221221        if ( 'settings_page_wccsp_settings' != $current_screen->id ) {
    222222            return;
     
    229229            'contact-form'  => __( 'Contact Form',  'wordcamporg' ),
    230230        );
    231        
     231
    232232        foreach ( $required_modules as $module_id => $module_name ) {
    233233            if ( ! in_array( $module_id, $active_modules ) ) {
Note: See TracChangeset for help on using the changeset viewer.