Ticket #64: 64-meta.diff
| File 64-meta.diff, 1.8 KB (added by , 13 years ago) |
|---|
-
header.php
100 100 <?php } ?> 101 101 <meta name="google-site-verification" content="7VWES_-rcHBcmaQis9mSYamPfNwE03f4vyTj4pfuAw0" /> 102 102 <?php if ( empty( $_GET['wpcodex'] ) ) : ?> 103 <title><?php if ( WPORG_SANDBOXED ) echo WPORG_SANDBOXED . ': '; echo $pagetitle; ?></title>103 <title><?php echo wporg_sandbox_title( $pagetitle ); ?></title> 104 104 <?php else : // codex ?> 105 105 <!-- [codex head meta] --> 106 106 <link rel="stylesheet" href="<?php echo $http_prefix; ?>wordpress.org/style/codex-wp4.css?3" /> -
functions-global.php
191 191 <?php 192 192 } 193 193 194 /* 195 * If the current server is a sandbox, then put it's ID in the <title> tag to 196 * help distinguish it from production 197 */ 198 function wporg_sandbox_title( $title ) { 199 if ( defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED ) 200 $title = WPORG_SANDBOXED . ': ' . $title; 201 202 return $title; 203 } 204 No newline at end of file -
wp-content/themes/make-twentyeleven/functions.php
1 <?php 2 3 require_once( ABSPATH . '/functions-global.php' ); 4 add_filter( 'wp_title', 'wporg_sandbox_title' ); 5 No newline at end of file