Ticket #39798: WordPress-20170206-expose-PHP-version-in-dashboard.patch
File WordPress-20170206-expose-PHP-version-in-dashboard.patch, 1.2 KB (added by , 7 years ago) |
---|
-
wp-admin/includes/update.php
282 282 $msg .= '<a href="' . network_admin_url( 'update-core.php' ) . '" class="button" aria-describedby="wp-version">' . sprintf( __( 'Update to %s' ), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a> '; 283 283 } 284 284 285 /* translators: 1: version number, 2: theme name*/286 $content = __( 'WordPress %1$s running %2$s theme .' );285 /* translators: 1: WP version number, 2: theme name, 3: PHP version number */ 286 $content = __( 'WordPress %1$s running %2$s theme under PHP %3$s.' ); 287 287 288 288 /** 289 289 * Filters the text displayed in the 'At a Glance' dashboard widget. … … 296 296 */ 297 297 $content = apply_filters( 'update_right_now_text', $content ); 298 298 299 $msg .= sprintf( '<span id="wp-version">' . $content . '</span>', get_bloginfo( 'version', 'display' ), $theme_name );299 $msg .= sprintf( '<span id="wp-version">' . $content . '</span>', get_bloginfo( 'version', 'display' ), $theme_name, phpversion() ); 300 300 301 301 echo "<p id='wp-version-message'>$msg</p>"; 302 302 }