Making WordPress.org

Ticket #5802: 5802.patch

File 5802.patch, 1.7 KB (added by poena, 3 years ago)
  • wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php

     
    363363                        asort( $tags[ __( 'Features' ) ] );
    364364                }
    365365
     366                // See https://core.trac.wordpress.org/ticket/53556.
     367                if ( ! isset( $wp_version ) || version_compare( $wp_version, '5.8.1', '>=' ) ) {
     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 ) {
    368374                        $tags[ $title ] = array_keys( $group );
  • wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

     
    365365                                'post-formats'          => __( 'Post Formats', 'wporg-themes' ),
    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' ),
    370371                                'translation-ready'     => __( 'Translation Ready', 'wporg-themes' ),