Changeset 6968
- Timestamp:
- 03/29/2018 09:06:03 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php
r6903 r6968 59 59 60 60 add_theme_support( 'wp4-styles' ); 61 62 $GLOBALS['pagetitle'] = __( 'WordPress.org', 'wporg' );63 61 } 64 62 add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); 63 64 /** 65 * Sets the document title. 66 * 67 * The global $pagetitle is used by the global w.org header. 68 * 69 * @global string $pagetitle 70 */ 71 function set_document_title() { 72 $GLOBALS['pagetitle'] = wp_get_document_title(); 73 } 74 add_action( 'template_redirect', __NAMESPACE__ . '\set_document_title' ); 65 75 66 76 /**
Note: See TracChangeset
for help on using the changeset viewer.