mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
After [35718], update the location of some files in This filter is documented in docs.
Partially reverts [33954]. Fixes #33413. git-svn-id: https://develop.svn.wordpress.org/trunk@35725 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1034,7 +1034,7 @@ function sanitize_user_field($field, $value, $user_id, $context) {
|
||||
if ( 'edit' == $context ) {
|
||||
if ( $prefixed ) {
|
||||
|
||||
/** This filter is documented in wp-includes/post-functions.php */
|
||||
/** This filter is documented in wp-includes/post.php */
|
||||
$value = apply_filters( "edit_{$field}", $value, $user_id );
|
||||
} else {
|
||||
|
||||
@@ -1058,7 +1058,7 @@ function sanitize_user_field($field, $value, $user_id, $context) {
|
||||
$value = esc_attr($value);
|
||||
} elseif ( 'db' == $context ) {
|
||||
if ( $prefixed ) {
|
||||
/** This filter is documented in wp-includes/post-functions.php */
|
||||
/** This filter is documented in wp-includes/post.php */
|
||||
$value = apply_filters( "pre_{$field}", $value );
|
||||
} else {
|
||||
|
||||
@@ -1078,7 +1078,7 @@ function sanitize_user_field($field, $value, $user_id, $context) {
|
||||
// Use display filters by default.
|
||||
if ( $prefixed ) {
|
||||
|
||||
/** This filter is documented in wp-includes/post-functions.php */
|
||||
/** This filter is documented in wp-includes/post.php */
|
||||
$value = apply_filters( $field, $value, $user_id, $context );
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user