[wp-trac] [WordPress Trac] #61837: Uncaught TypeError in wp/v2/posts/{id} endpoint
WordPress Trac
noreply at wordpress.org
Tue Aug 13 20:26:37 UTC 2024
#61837: Uncaught TypeError in wp/v2/posts/{id} endpoint
-----------------------------------------+------------------------------
Reporter: mlf20 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 6.2.2
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback | Focuses: rest-api
-----------------------------------------+------------------------------
Changes (by antonvlasenko):
* keywords: has-patch => has-patch reporter-feedback
Comment:
== Reproduction Report
=== Environment
- WordPress: 6.7-alpha-58576-src
- PHP: 7.3.33
- Server: Apache/2.4.57 (Unix) PHP/7.3.33
- Database: mysqli (Server: 5.7.43 / Client: mysqlnd 5.0.12-dev)
- Browser: Safari 17.6 (macOS)
- Theme: Twenty Twenty-Four 1.2
- MU-Plugins: None activated
- Plugins:
* JSON Basic Authentication 0.1
=== Actual Results
- ❌ Password validation works as expected (bug not reproduced).
=== Additional Notes
@mlf20 I am curious about why password validation isn't functioning as
expected in your situation. The validation should catch non-string
password values since the `password` field in the REST API is specified as
a `string` type. I cannot reproduce this issue on WordPress 6.6.
=== Supplemental Artifacts
[[Image(https://cldup.com/6YBAhssEOc.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61837#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list