Ticket #18629: add-svn.diff
| File add-svn.diff, 2.6 KB (added by , 15 years ago) |
|---|
-
wp-includes/version.php
40 40 * @global string $required_mysql_version 41 41 */ 42 42 $required_mysql_version = '5.0'; 43 44 /** 45 * Generates the string for SVN version, if appropriate 46 * 47 * @global string $wp_svn_version 48 */ 49 if ( $svn = File( '.svn/entries' ) ) 50 $wp_svn_version = ' SVN Revision: ' . $svn[3]; 51 else 52 $wp_svn_version = ''; -
wp-admin/includes/update.php
86 86 return false; 87 87 88 88 if ( !current_user_can('update_core') ) 89 return sprintf( __( 'Version % s' ), $GLOBALS['wp_version'] );89 return sprintf( __( 'Version %1$s%2$s' ), $GLOBALS['wp_version'], $GLOBALS['wp_svn_version'] ); 90 90 91 91 $cur = get_preferred_from_update_core(); 92 92 if ( ! isset( $cur->current ) ) … … 100 100 101 101 switch ( $cur->response ) { 102 102 case 'development' : 103 return sprintf( __( 'You are using a development version (%1$s ). Cool! Please <a href="%2$s">stay updated</a>.' ), $GLOBALS['wp_version'], network_admin_url( 'update-core.php' ) );103 return sprintf( __( 'You are using a development version (%1$s%2$s). Cool! Please <a href="%3$s">stay updated</a>.' ), $GLOBALS['wp_version'], $GLOBALS['wp_svn_version'], network_admin_url( 'update-core.php' ) ); 104 104 break; 105 105 106 106 case 'upgrade' : … … 109 109 110 110 case 'latest' : 111 111 default : 112 return sprintf( __( 'Version % s' ), $GLOBALS['wp_version'] );112 return sprintf( __( 'Version %1$s%2$s' ), $GLOBALS['wp_version'], $GLOBALS['wp_svn_version'] ); 113 113 break; 114 114 } 115 115 } … … 145 145 146 146 $cur = get_preferred_from_update_core(); 147 147 148 $msg = sprintf( __('You are using <span class="b">WordPress % s</span>.'), $GLOBALS['wp_version'] );148 $msg = sprintf( __('You are using <span class="b">WordPress %1$s%2$s</span>.'), $GLOBALS['wp_version'], $GLOBALS['wp_svn_version'] ); 149 149 150 150 if ( isset( $cur->response ) && $cur->response == 'upgrade' && current_user_can('update_core') ) { 151 151 $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)