Making WordPress.org


Ignore:
Timestamp:
12/15/2022 06:14:16 PM (2 years ago)
Author:
coffee2code
Message:

Theme Directory: Add initial theme categorization features to the theme.

File:
1 edited

Legend:

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

    r12160 r12338  
    215215                'active_installs_less_than_10' => __( 'Less than 10', 'wporg-themes' ),
    216216                'active_installs_1_million' => __( '1+ million', 'wporg-themes' ),
     217            ),
     218            'rest' => array(
     219                'restUrl'   => get_rest_url(),
     220                'restNonce' => wp_create_nonce( 'wp_rest' ),
     221                'themeSlug' => get_post()->post_name ?? '',
    217222            ),
    218223        ) );
Note: See TracChangeset for help on using the changeset viewer.