WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/22/2015 04:00:32 AM (6 years ago)
Author:
dd32
Message:

WordPress.org Themes: Add the ability to favorite themes.

File:
1 edited

Legend:

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

    r1596 r1770  
    5959                'postsPerPage' => 24,
    6060                'path'         => trailingslashit( parse_url( home_url(), PHP_URL_PATH ) ),
    61                 'locale'       => get_locale()
     61                'locale'       => get_locale(),
     62                'favorites'    => array(
     63                    'themes' => wporg_themes_get_user_favorites(),
     64                    'user'   => wp_get_current_user()->user_login,
     65                    'nonce'  => is_user_logged_in() ? wp_create_nonce( 'modify-theme-favorite' ) : false,
     66                ),
    6267            ),
    6368            'l10n' => array(
Note: See TracChangeset for help on using the changeset viewer.