Making WordPress.org


Ignore:
Timestamp:
08/13/2020 11:43:14 PM (6 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/1accd3db38a60230689bdc157f9e82081d35d163...38e7793fd20434d72ca898988d017ba2009fb677

File:
1 edited

Legend:

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

    r10142 r10169  
    11<?php
     2/**
     3 * Template for Workshop Details metabox
     4 */
     5
    26/** @var WP_Post $post */
    37/** @var DateInterval $duration_interval */
     
    610
    711<p>
    8     <label><?php _e( 'Duration', 'wporg_learn' ); ?></label><br />
     12    <label><?php esc_html_e( 'Duration', 'wporg_learn' ); ?></label><br />
    913    <label for="workshop-duration-hours">
    1014        <input
     
    1620            max="23"
    1721        />
    18         <?php _e( 'hours', 'wporg_learn' ); ?>
     22        <?php esc_html_e( 'hours', 'wporg_learn' ); ?>
    1923    </label>
    2024    <label for="workshop-duration-minutes">
     
    2731            max="59"
    2832        />
    29         <?php _e( 'minutes', 'wporg_learn' ); ?>
     33        <?php esc_html_e( 'minutes', 'wporg_learn' ); ?>
    3034    </label>
    3135    <label for="workshop-duration-seconds">
     
    3842                max="59"
    3943        />
    40         <?php _e( 'seconds', 'wporg_learn' ); ?>
     44        <?php esc_html_e( 'seconds', 'wporg_learn' ); ?>
    4145    </label>
    4246</p>
     
    4448<?php // todo Change this to a select dropdown with locale values. ?>
    4549<p>
    46     <label for="workshop-video-language"><?php _e( 'Language', 'wporg_learn' ); ?></label>
     50    <label for="workshop-video-language"><?php esc_html_e( 'Language', 'wporg_learn' ); ?></label>
    4751    <input
    4852        id="workshop-video-language"
    4953        name="video-language"
    5054        type="text"
    51         value="<?php echo sanitize_text_field( $post->video_language ); ?>"
     55        value="<?php echo esc_attr( $post->video_language ); ?>"
    5256    />
    5357</p>
     
    5559<?php // todo Change this to a multiselect dropdown with locale values. ?>
    5660<p>
    57     <label for="workshop-video-caption-language"><?php _e( 'Captions', 'wporg_learn' ); ?></label>
    58     <textarea id="workshop-video-caption-language" name="video-caption-language"><?php echo sanitize_textarea_field( implode( ', ', $captions ) ); ?></textarea>
     61    <label for="workshop-video-caption-language"><?php esc_html_e( 'Captions', 'wporg_learn' ); ?></label>
     62    <textarea id="workshop-video-caption-language" name="video-caption-language"><?php echo esc_attr( implode( ', ', $captions ) ); ?></textarea>
    5963    <span class="help">
    60         <?php _e( 'Separate multiple languages with a comma.', 'wporg_learn' ); ?>
     64        <?php esc_html_e( 'Separate multiple languages with a comma.', 'wporg_learn' ); ?>
    6165    </span>
    6266</p>
Note: See TracChangeset for help on using the changeset viewer.