[wp-trac] [WordPress Trac] #37441: get_default_post_to_edit() function is broken
WordPress Trac
noreply at wordpress.org
Mon Sep 1 11:50:03 UTC 2025
#37441: get_default_post_to_edit() function is broken
-------------------------------------------------+-------------------------
Reporter: tfrommen | Owner: rishabhwp
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: Posts, Post Types | Version: 5.6
Severity: normal | Resolution:
Keywords: has-test-info good-first-bug has- | Focuses:
patch has-unit-tests | administration
-------------------------------------------------+-------------------------
Comment (by SirLouen):
Replying to [comment:13 rishabhwp]:
> Without that part, [https://github.com/R1shabh-Gupta/wordpress-
develop/blob/d1635814f678e6de33edf15ab5ad4446c99f3cd6/tests/phpunit/tests/admin/includesPost.php#L1334
the test I added in the PR] fails. It also seems more appropriate to stop
the execution with a proper message.
Yeah I know that the test fails, because you have adapted your test to
that part.
But I would like to hear, if the execution continues
[https://github.com/SirLouen/wordpress-
develop/blob/da59c19dcaae731f64c9f512d35157e356e25931/src/wp-
admin/includes/post.php#L774-L775 after this line or not], without that
code block. I don't have the machine ready to test it right now, otherwise
I will test it later.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37441#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list