Changeset 814 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
- Timestamp:
- 08/26/2014 08:09:07 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
r813 r814 55 55 add_action( 'template_redirect', __NAMESPACE__ . '\\redirect_single_search_match' ); 56 56 add_action( 'template_redirect', __NAMESPACE__ . '\\redirect_handbook' ); 57 add_action( 'template_redirect', __NAMESPACE__ . '\\redirect_resources' ); 57 58 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\theme_scripts_styles' ); 58 59 add_filter( 'post_type_link', __NAMESPACE__ . '\\method_permalink', 10, 2 ); … … 402 403 403 404 /** 405 * Redirects a naked /resources/ request to dashicons page. 406 * 407 * Temporary until a resource page other than dashicons is created. 408 */ 409 function redirect_resources() { 410 if ( is_page( 'resources' ) ) { 411 wp_redirect( get_permalink( get_page_by_title( 'dashicons' ) ) ); 412 exit(); 413 } 414 } 415 416 /** 404 417 * Makes phpDoc @link references clickable. 405 418 *
Note: See TracChangeset
for help on using the changeset viewer.