db $wpdb WordPress database abstraction object. */ function wp_register_persisted_preferences_meta() { /* * Create a meta key that incorporates the blog prefix so that each site * on a multisite can have distinct user preferences. */ global $wpdb; $meta_key = $wpdb->get_blog_prefix() . 'persisted_preferences'; register_meta( 'user', $meta_key, array( 'type' => 'object', 'single' => true, 'show_in_rest' => array( 'name' => 'persisted_preferences', 'type' => 'object', 'schema' => array( 'type' => 'object', 'context' => array( 'edit' ), 'properties' => array( '_modified' => array( 'description' => __( 'The date and time the preferences were updated.' ), 'type' => 'string', 'format' => 'date-time', 'readonly' => false, ), ), 'additionalProperties' => true, ), ), ) ); } /** * Sets the last changed time for the 'users' cache group. * * @since 6.3.0 */ function wp_cache_set_users_last_changed() { wp_cache_set_last_changed( 'users' ); } /** * Checks if password reset is allowed for a specific user. * * @since 6.3.0 * * @param int|WP_User $user The user to check. * @return bool|WP_Error True if allowed, false or WP_Error otherwise. */ function wp_is_password_reset_allowed_for_user( $user ) { if ( ! is_object( $user ) ) { $user = get_userdata( $user ); } if ( ! $user || ! $user->exists() ) { return false; } $allow = true; if ( is_multisite() && is_user_spammy( $user ) ) { $allow = false; } /** * Filters whether to allow a password to be reset. * * @since 2.7.0 * * @param bool $allow Whether to allow the password to be reset. Default true. * @param int $user_id The ID of the user attempting to reset a password. */ return apply_filters( 'allow_password_reset', $allow, $user->ID ); }
Fatal error: Uncaught Error: Failed opening required '/home/alaaeldi/public_html/wp-includes/class-wp-user-query.php' (include_path='.:') in /home/alaaeldi/public_html/wp-settings.php:209 Stack trace: #0 /home/alaaeldi/public_html/wp-config.php(102): require_once() #1 /home/alaaeldi/public_html/wp-load.php(50): require_once('/home/alaaeldi/...') #2 /home/alaaeldi/public_html/wp-blog-header.php(13): require_once('/home/alaaeldi/...') #3 /home/alaaeldi/public_html/index.php(17): require('/home/alaaeldi/...') #4 {main} thrown in /home/alaaeldi/public_html/wp-settings.php on line 209

Warning: Failed loading Zend extension 'xdebug.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Warning: PHP Startup: uploadprogress: Unable to initialize module Module compiled with module API=20190902 PHP compiled with module API=20220829 These options need to match in Unknown on line 0

Warning: PHP Startup: Invalid date.timezone value 'أوروبا / لندن', using 'UTC' instead in Unknown on line 0

Warning: MongoDB\BSON\BinaryInterface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Decimal128Interface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\JavascriptInterface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\ObjectIdInterface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\RegexInterface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\TimestampInterface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\UTCDateTimeInterface::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Binary::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\DBPointer::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Decimal128::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Int64::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Javascript::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\ObjectId::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Regex::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Symbol::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Timestamp::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\Undefined::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\BSON\UTCDateTime::__toString() implemented without string return type in Unknown on line 0

Warning: MongoDB\Driver\CursorId::__toString() implemented without string return type in Unknown on line 0