WordPress.org

Making WordPress.org

Changeset 11158


Ignore:
Timestamp:
07/29/2021 02:45:49 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Theme Directory: API: Add template-editing tag for WordPress 5.8.1+.

Props poena.
Fixes #5802. See #WP53556.

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php

    r11115 r11158  
    364364        }
    365365
     366        // See https://core.trac.wordpress.org/ticket/53556.
     367        if ( ! isset( $wp_version ) || version_compare( $wp_version, '5.8.1-alpha', '>=' ) ) {
     368            $tags[ __( 'Features' ) ]['template-editing'] = __( 'Template Editing' );
     369            asort( $tags[ __( 'Features' ) ] );
     370        }
     371
    366372        // Only return tag slugs, to stay compatible with bbpress-version of Themes API.
    367373        foreach ( $tags as $title => $group ) {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r11134 r11158  
    366366                'rtl-language-support'  => __( 'RTL Language Support', 'wporg-themes' ),
    367367                'sticky-post'           => __( 'Sticky Post', 'wporg-themes' ),
     368                'template-editing'      => __( 'Template Editing', 'wporg-themes' ),
    368369                'theme-options'         => __( 'Theme Options', 'wporg-themes' ),
    369370                'threaded-comments'     => __( 'Threaded Comments', 'wporg-themes' ),
Note: See TracChangeset for help on using the changeset viewer.