Making WordPress.org


Ignore:
Timestamp:
09/15/2022 09:23:21 PM (4 years ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@05de7979860925823e6b081b30129e5117a0d6e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php

    r12064 r12067  
    245245                        'icon'  => 'clock',
    246246                        'slug'  => 'duration',
    247                         'label' => wporg_label_with_colon( get_taxonomy_labels( get_taxonomy( 'duration' ) )->singular_name ),
     247                        'label' => get_taxonomy_labels( get_taxonomy( 'duration' ) )->singular_name,
    248248                        'value' => wporg_learn_get_taxonomy_terms( $post_id, 'duration', $context ),
    249249                ),
     
    251251                        'icon'  => 'admin-users',
    252252                        'slug'  => 'audience',
    253                         'label' => wporg_label_with_colon( get_taxonomy_labels( get_taxonomy( 'audience' ) )->singular_name ),
     253                        'label' => get_taxonomy_labels( get_taxonomy( 'audience' ) )->singular_name,
    254254                        'value' => wporg_learn_get_taxonomy_terms( $post_id, 'audience', $context ),
    255255                ),
     
    257257                        'icon'  => 'dashboard',
    258258                        'slug'  => 'level',
    259                         'label' => wporg_label_with_colon( get_taxonomy_labels( get_taxonomy( 'level' ) )->singular_name ),
     259                        'label' => get_taxonomy_labels( get_taxonomy( 'level' ) )->singular_name,
    260260                        'value' => wporg_learn_get_taxonomy_terms( $post_id, 'level', $context ),
    261261                ),
     
    263263                        'icon'  => 'welcome-learn-more',
    264264                        'slug'  => 'type',
    265                         'label' => wporg_label_with_colon( get_taxonomy_labels( get_taxonomy( 'instruction_type' ) )->singular_name ),
     265                        'label' => get_taxonomy_labels( get_taxonomy( 'instruction_type' ) )->singular_name,
    266266                        'value' => wporg_learn_get_taxonomy_terms( $post_id, 'instruction_type', $context ),
    267267                ),
     
    708708
    709709                case 'lesson-plan':
    710                         $args['meta'] = wporg_learn_get_lesson_plan_taxonomy_data( $post_id, 'archive' );
     710                        $args['meta']  = wporg_learn_get_lesson_plan_taxonomy_data( $post_id, 'archive' );
    711711                        break;
    712712
Note: See TracChangeset for help on using the changeset viewer.