Making WordPress.org


Ignore:
Timestamp:
11/23/2022 09:41:46 PM (3 years ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@032e753

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/post-meta.php

    r12174 r12276  
    114114            'single'            => false,
    115115            'sanitize_callback' => 'sanitize_user',
    116             'show_in_rest'      => true,
    117         )
    118     );
    119 
    120     register_post_meta(
    121         $post_type,
    122         'video_language',
    123         array(
    124             'description'       => __( 'The language that the workshop is presented in.', 'wporg_learn' ),
    125             'type'              => 'string',
    126             'single'            => true,
    127             'default'           => 'en_US',
    128             'sanitize_callback' => __NAMESPACE__ . '\sanitize_locale',
    129116            'show_in_rest'      => true,
    130117        )
     
    480467    }
    481468
    482     $video_language = filter_input( INPUT_POST, 'video-language' );
    483     update_post_meta( $post_id, 'video_language', $video_language );
    484 
    485469    $captions = filter_input( INPUT_POST, 'video-caption-language', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
    486470    delete_post_meta( $post_id, 'video_caption_language' );
Note: See TracChangeset for help on using the changeset viewer.