git-svn-id: https://develop.svn.wordpress.org/trunk@19596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
63462aca3a
commit
54067a5f20
@ -1290,7 +1290,7 @@ function wp_welcome_panel() {
|
|||||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||||
|
|
||||||
<div class="welcome-panel-content">
|
<div class="welcome-panel-content">
|
||||||
<h3><?php _e( 'Welcome to your new WordPress site! ' ); ?></h3>
|
<h3><?php _e( 'Welcome to your new WordPress site!' ); ?></h3>
|
||||||
<p class="about-description"><?php _e( 'If you need help getting started, check out our documentation on <a href="http://codex.wordpress.org/First_Steps_With_WordPress">First Steps with WordPress</a>. If you’d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?></p>
|
<p class="about-description"><?php _e( 'If you need help getting started, check out our documentation on <a href="http://codex.wordpress.org/First_Steps_With_WordPress">First Steps with WordPress</a>. If you’d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?></p>
|
||||||
<div class="welcome-panel-column-container">
|
<div class="welcome-panel-column-container">
|
||||||
<div class="welcome-panel-column">
|
<div class="welcome-panel-column">
|
||||||
|
@ -487,10 +487,15 @@ class WP_User {
|
|||||||
static function get_data_by( $field, $value ) {
|
static function get_data_by( $field, $value ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
if ( 'id' == $field )
|
if ( 'id' == $field ) {
|
||||||
|
// Make sure the value is numeric to avoid casting objects, for example,
|
||||||
|
// to int 1.
|
||||||
|
if ( ! is_numeric( $value ) )
|
||||||
|
return false;
|
||||||
$value = absint( $value );
|
$value = absint( $value );
|
||||||
else
|
} else {
|
||||||
$value = trim( $value );
|
$value = trim( $value );
|
||||||
|
}
|
||||||
|
|
||||||
if ( !$value )
|
if ( !$value )
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user