Changeset 11413
- Timestamp:
- 01/06/2022 05:56:14 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 5 edited
-
plugins/wporg-learn/inc/blocks.php (modified) (2 diffs)
-
plugins/wporg-learn/inc/taxonomy.php (modified) (1 diff)
-
themes/pub/wporg-learn-2020/header.php (modified) (1 diff)
-
themes/pub/wporg-learn-2020/template-parts/component-lesson-filters.php (modified) (1 diff)
-
themes/pub/wporg-learn-2020/template-parts/component-workshop-filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/blocks.php
r11352 r11413 77 77 $captions = get_post_meta( $post->ID, 'video_caption_language' ); 78 78 79 $version_ids = wp_get_post_terms( $post->ID, 'wporg_wp_version', array( 'fields' => 'ids' ) ); 80 $version_names = wp_get_post_terms( $post->ID, 'wporg_wp_version', array( 'fields' => 'names' ) ); 81 79 82 $topic_names = array(); 80 83 foreach ( $topic_ids as $id ) { … … 92 95 'param' => $topic_ids, 93 96 'value' => $topic_names, 97 ), 98 'wp_version' => array( 99 'label' => __( 'Related Version', 'wporg-learn' ), 100 'param' => $version_ids, 101 'value' => $version_names, 94 102 ), 95 103 'level' => array( -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/taxonomy.php
r11300 r11413 516 516 ); 517 517 518 $post_types = array( 'lesson-plan', 'wporg_workshop', 'course', 'lesson' );518 $post_types = array( 'lesson-plan', 'wporg_workshop', 'course', 'lesson', 'meeting' ); 519 519 520 520 register_taxonomy( 'wporg_wp_version', $post_types, $args ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php
r11400 r11413 15 15 16 16 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 17 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 17 18 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 18 19 } else { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-lesson-filters.php
r11278 r11413 24 24 'name' => 'type', 25 25 'current' => filter_input( INPUT_GET, 'type', FILTER_VALIDATE_INT, FILTER_REQUIRE_ARRAY ) ?? array(), 26 ), 27 array( 28 'label' => get_taxonomy_labels( get_taxonomy( 'wporg_wp_version' ) )->singular_name, 29 'terms' => get_terms( array( 'taxonomy' => 'wporg_wp_version' ) ), 30 'name' => 'wp_version', 31 'current' => filter_input( INPUT_GET, 'wp_version', FILTER_VALIDATE_INT, FILTER_REQUIRE_ARRAY ) ?? array(), 26 32 ), 27 33 ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-workshop-filters.php
r11294 r11413 30 30 'name' => 'captions', 31 31 'items' => \WPOrg_Learn\Post_Meta\get_available_workshop_locales( 'video_caption_language', 'native' ), 32 ), 33 array( 34 'label' => __( 'WordPress Version', 'wporg-learn' ), 35 'name' => 'wp_version', 36 'items' => get_terms( array( 37 'taxonomy' => 'wporg_wp_version', 38 'fields' => 'id=>name', 39 ) ), 32 40 ), 33 41 );
Note: See TracChangeset
for help on using the changeset viewer.