Making WordPress.org


Ignore:
Timestamp:
04/26/2021 11:09:28 PM (4 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/commit/5133da6d34c524f7b4685400c8359842153fbf17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-workshop-filters.php

    r10511 r10926  
    5757                                <?php selected( $item_value, filter_input( INPUT_GET, $bucket['name'] ) ); ?>
    5858                            >
    59                                 <?php echo esc_html( $item_label ); ?>
     59                                <?php if ( in_array( $bucket['name'], array( 'language', 'captions' ) ) ) :
     60                                    printf(
     61                                        '%s [%s]',
     62                                        esc_html( $item_label ),
     63                                        esc_html( $item_value ),
     64                                    );
     65                                else :
     66                                    echo esc_html( $item_label );
     67                                endif; ?>
    6068                            </option>
    6169                        <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.