Making WordPress.org


Ignore:
Timestamp:
10/14/2020 08:02:50 PM (5 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/commit/b8f0c23e4b7dfae6b61982fbf27888c2b62f3256

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/views/form-workshop-application.php

    r10376 r10378  
    8080                'name'          => 'online-presence',
    8181                'value'         => $form['online-presence'],
     82                'rows'          => 4,
    8283                'required'      => true,
    8384                'error_message' =>
     
    109110                'name'          => 'description-short',
    110111                'value'         => $form['description-short'],
     112                'rows'          => 4,
    111113                'required'      => true,
    112114                'error_message' =>
     
    120122                'name'          => 'description',
    121123                'value'         => $form['description'],
     124                'rows'          => 4,
    122125                'required'      => true,
    123126                'error_message' =>
     
    131134                'name'          => 'learning-objectives',
    132135                'value'         => $form['learning-objectives'],
     136                'rows'          => 4,
    133137                'required'      => true,
    134138                'error_message' =>
     
    142146                'name'          => 'comprehension-questions',
    143147                'value'         => $form['comprehension-questions'],
     148                'rows'          => 4,
    144149                'required'      => true,
    145150                'error_message' =>
     
    245250                </select>
    246251            </label>
    247             <label for="timezone" <?php echo in_array( 'timezone', $error_fields, true ) ? 'class="error"' : ''; ?>>
    248                 <span class="label-text"><?php echo esc_html( $schema['properties']['timezone']['label'] ); ?></span>
    249                 <span class="required-field"><?php esc_html_e( '(required)', 'wporg-learn' ); ?></span>
    250                 <?php if ( in_array( 'timezone', $error_fields, true ) ) : ?>
    251                     <span class="notice notice-error">
    252                         <?php echo wp_kses_data( $errors->get_error_message( "{$prefix}timezone" ) ); ?>
    253                     </span>
    254                 <?php endif; ?>
    255                 <select id="timezone" name="timezone" class="do-select2" required>
    256                     <?php echo wp_timezone_choice( $form['timezone'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
    257                 </select>
    258             </label>
    259252            <?php
    260253            echo render_textarea_field( array( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     
    263256                'name'          => 'comments',
    264257                'value'         => $form['comments'],
     258                'rows'          => 4,
    265259                'error_message' =>
    266260                    in_array( 'comments', $error_fields, true )
Note: See TracChangeset for help on using the changeset viewer.