#42401 closed defect (bug) (fixed)
Typechecker problem in wp-db.php
Reported by: | mkomar | Owned by: | pento |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.8.3 |
Component: | Database | Keywords: | has-patch dev-reviewed commit fixed-major |
Focuses: | Cc: |
Description
Argument 3 to hash_hmac() must be of type ?string, int given in /xxx/wp-includes/wp-db.php on line 1969
Attachments (1)
Change History (22)
#2
@
7 years ago
- Keywords has-patch dev-feedback added
- Milestone changed from Awaiting Review to 4.9
Thanks for the patch, @mkomar! Looks good to me, can another committer sign off, please?
Milestoning this for 4.9, it will also need to be back ported back to 3.7.
#3
@
7 years ago
- Keywords dev-reviewed commit added; dev-feedback removed
- Owner set to pento
- Status changed from new to assigned
Checked with patch applied.
- db tests still pass
- tested with the following in
wp shell
vagrant@vvv:~/www/wordpress-develop/public_html$ wp shell wp> echo esc_sql( 'my_%s_is_here' ) my_{1ee1e59bb60fe439935c62feaddc27663f7f4c28c259b77396a66862bf7ce08b}s_is_here wp> exit vagrant@vvv:~/www/wordpress-develop/public_html$ wp shell wp> echo esc_sql( 'my_%s_is_here' ) my_{ef1631a8a1c700ba5a1eb3f7e60974329c42910a031432de15ab4ab1378ef1af}s_is_here wp> exit
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by westonruter. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
patch to resolve the problem.