Changeset 1821
- Timestamp:
- 08/12/2015 05:19:45 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 2 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 ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php
r1429 r1821 35 35 */ 36 36 public static function do_init() { 37 add_action( 'after_switch_theme', array( __CLASS__, 'add_roles' ) ); 38 37 39 add_filter( 'user_has_cap', array( __CLASS__, 'adjust_handbook_editor_caps' ), 11 ); 38 40
Note: See TracChangeset
for help on using the changeset viewer.