Changeset 3009 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
- Timestamp:
- 04/26/2016 07:33:28 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r2499 r3009 1 1 <?php 2 namespace WordPressdotorg\Plugin_Directory\Theme; 2 3 3 4 /** … … 18 19 ) ); 19 20 21 register_sidebar( array( 22 'name' => 'Single Plugin View Sidebar', 23 'id' => 'single-plugin-sidebar', 24 'before_widget' => '<div id="%1$s" class="widget %2$s">', 25 'after_widget' => '</div>', 26 ) ); 27 20 28 // No need for canonical lookups 21 //remove_action( 'template_redirect', 'redirect_canonical' ); 22 remove_action( 'template_redirect', 'wp_old_slug_redirect' ); 29 remove_action( 'template_redirect', __NAMESPACE__ . '\wp_old_slug_redirect' ); 23 30 } 24 add_action( 'after_setup_theme', 'wporg_plugins_setup' );31 add_action( 'after_setup_theme', __NAMESPACE__ . '\wporg_plugins_setup' ); 25 32 26 33 /** … … 45 52 add_filter( 'jetpack_implode_frontend_css', '__return_false' ); 46 53 } 47 add_action( 'wp_enqueue_scripts', 'wporg_plugins_scripts' );54 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\wporg_plugins_scripts' ); 48 55 49 56 function wporg_plugins_body_class( $classes ) { … … 51 58 return $classes; 52 59 } 53 add_filter( 'body_class', 'wporg_plugins_body_class' );60 add_filter( 'body_class', __NAMESPACE__ . '\wporg_plugins_body_class' );
Note: See TracChangeset
for help on using the changeset viewer.