Opened 9 years ago
Closed 9 years ago
#34896 closed defect (bug) (fixed)
Prevent unnecessary $wpdb->update() when hierarchical post doesn't have children
Reported by: | danielbachhuber | Owned by: | joehoyle |
---|---|---|---|
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
count
I think is superfluous, checking the result fromget_results
is falsy should be fine.