Opened 11 years ago
Closed 11 years ago
#34896 closed defect (bug) (fixed)
Prevent unnecessary $wpdb->update() when hierarchical post doesn't have children
| Reported by: | danielbachhuber | Owned by: | joehoyle |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests commit |
| Cc: | Focuses: |
Description
Includes tests for reassignment behavior when deleting a hierarchical post, which I couldn't find in our test suite.
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good, as noted in Slack, the
countI think is superfluous, checking the result fromget_resultsis falsy should be fine.