Opened 10 years ago
Closed 10 years ago
#34896 closed defect (bug) (fixed)
Prevent unnecessary $wpdb->update() when hierarchical post doesn't have children
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.5 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests commit |
| Focuses: | Cc: |
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.
Looks good, as noted in Slack, the
countI think is superfluous, checking the result fromget_resultsis falsy should be fine.