Changeset 1821 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
- Timestamp:
- 08/12/2015 05:19:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
r1678 r1821 86 86 register_nav_menus(); 87 87 88 add_action( 'after_switch_theme', __NAMESPACE__ . '\\add_roles' );89 88 add_action( 'pre_get_posts', __NAMESPACE__ . '\\pre_get_posts' ); 90 89 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\theme_scripts_styles' ); … … 98 97 add_theme_support( 'automatic-feed-links' ); 99 98 add_theme_support( 'post-thumbnails' ); 100 101 // Add the handbook's 'Watch' action link.102 if ( class_exists( 'WPorg_Handbook_Watchlist' ) && method_exists( 'WPorg_Handbook_Watchlist', 'display_action_link' ) ) {103 add_action( 'wporg_action_links', array( 'WPorg_Handbook_Watchlist', 'display_action_link' ) );104 }105 99 106 100 add_filter( 'breadcrumb_trail_items', __NAMESPACE__ . '\\breadcrumb_trail_items', 10, 2 );
Note: See TracChangeset
for help on using the changeset viewer.