Skip to content

Use the Core REST media route in the upload test - #35

Closed
euvoor wants to merge 1 commit into
WordPress:add/core-experimental-namespacefrom
euvoor:fix/experimental-media-rest-route
Closed

euvoor wants to merge 1 commit into
WordPress:add/core-experimental-namespacefrom
euvoor:fix/experimental-media-rest-route

Conversation

@euvoor

@euvoor euvoor commented Nov 26, 2026

Copy link
Copy Markdown

@nikmclaughlin I hit the media upload 404 while testing #30 against #33. The ability now uses core-experimental/media-upload. The REST endpoint the test compares it with is still /wp/v2/media.

The 404 also explains the later failure in UsersQueryTest. The upload test stops at the status assertion before it restores timezone_string, so the next test gets a New York timestamp where it expects UTC. Restoring the REST URL clears both failures.

I ran the full suite on WordPress 7.1.5 and 7.2 RC2. Both runs reported 288 cases, zero failures, and two warnings. Two cases were skipped on 7.1.5 and three on RC2.

@euvoor
euvoor requested a review from a team as a code owner November 26, 2026 22:47
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: euvoor <euvoor@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub or WordPress.org user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@nikmclaughlin

Copy link
Copy Markdown
Contributor

Thanks @euvoor, this is superseded by #33 as of 62f2a55 , and I also prevented the timezone leak there so that shouldn't come up again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants