Changes between Initial Version and Version 2 of Ticket #63330
- Timestamp:
- 04/23/2025 11:36:27 PM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #63330
- Property Keywords has-patch added
-
Ticket #63330 – Description
initial v2 1 1 Hi, 2 2 3 Is there a way to check if $meta_key isn't null at [https://github.com/WordPress/WordPress/blob/master/wp-includes/meta.php#L1298 line 1298 of WP 6.8], to prevent to following php error:3 Is there a way to check if `$meta_key` isn't `null` at [https://github.com/WordPress/wordpress-develop/blob/05a2999a8daf0da7e21ab94096578e6eb073bedf/src/wp-includes/meta.php#L1298 line 1298 of WP 6.8], to prevent to following php error: 4 4 5 [18-Apr-2025 14:43:12 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/website/www/wp-includes/meta.php on line 1298 6 [18-Apr-2025 14:43:12 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /home/website/www/wp-includes/class-wp-user-query.php:486 5 {{{ 6 [18-Apr-2025 14:43:12 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /.../wp-includes/meta.php on line 1298 7 [18-Apr-2025 14:43:12 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /.../wp-includes/class-wp-user-query.php:486 7 8 Stack trace: 8 #0 /home/website/www/wp-includes/class-wp-user-query.php(486): array_filter(NULL) 9 #1 /home/website/www/wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query(Array) 10 #2 /home/website/www/wp-includes/user.php(807): WP_User_Query->__construct(Array) 11 #3 /home/website/www/wp-includes/user.php(1715): get_users(Array) 12 #4 /home/website/www/wp-admin/includes/meta-boxes.php(970): wp_dropdown_users(Array) 13 #5 /home/website/www/wp-admin/includes/template.php(1456): post_author_meta_box(Object(WP_Post), Array) 14 #6 /home/website/www/wp-admin/edit-form-advanced.php(722): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post)) 15 #7 /home/website/www/wp-admin/post.php(206): require('/home/website...') 16 #8 {main} thrown in /home/website/www/wp-includes/class-wp-user-query.php on line 486 9 #0 /.../wp-includes/class-wp-user-query.php(486): array_filter(NULL) 10 #1 /.../wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query(Array) 11 #2 /.../wp-includes/user.php(807): WP_User_Query->__construct(Array) 12 #3 /.../wp-includes/user.php(1715): get_users(Array) 13 #4 /.../wp-admin/includes/meta-boxes.php(970): wp_dropdown_users(Array) 14 #5 /.../wp-admin/includes/template.php(1456): post_author_meta_box(Object(WP_Post), Array) 15 #6 /.../wp-admin/edit-form-advanced.php(722): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post)) 16 #7 /.../wp-admin/post.php(206): require('/home...') 17 #8 {main} thrown in /.../wp-includes/class-wp-user-query.php on line 486 18 }}} 17 19 18 20 PHP version: 8.3.9