Opened 13 years ago
Closed 13 years ago
#2352 closed enhancement (duplicate)
Replies menu_order switch from wpdb->update to wp_update_post
| Reported by: | nofearinc | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Tools - Code Improvements | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Similarly to #2351, updating the last alive reference of $wpdb->update to wp_update_post for consistency in includes/replies/functions.php
Additionally, fixing a typo in a comment.
Attachments (1)
Change History (3)
#1
@
13 years ago
Same comment as at #2351.
Can you explain what conditionals are being skipped, and what the bug is?
IIRC, the $wpdb->update() approach is used by design to avoid the additional overhead and potential for filter recursion caused by running through wp_update_post(), wp_insert_post(), et all.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
wp_update_post migration and typo fix