WordPress.org

Making WordPress.org


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

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

Props poena.
Fixes #5802. See #WP53556.

File:
1 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 ) {
Note: See TracChangeset for help on using the changeset viewer.