Opened 17 years ago
Closed 15 years ago
#6647 closed enhancement (fixed)
Internally, pass arrays instead of query strings to functions that use wp_parse_args()
Reported by: | ryan | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Optimization | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Within core WP, we should pass arrays instead of query strings to functions that pass their args through wp_parse_args(). Arrays are faster, more secure, and avoid quoting bugs. See [7625] for an example conversion from a query string to an array.
Attachments (4)
Change History (19)
#5
@
15 years ago
- Keywords needs-patch added
- Milestone changed from 2.9 to Future Release
- Type changed from defect (bug) to enhancement
there are still a few in the default theme. do we want them fixed?
#6
@
15 years ago
get_bookmarks(), get_categories(), get_terms(), wp_get_object_terms() each have a few more
#7
@
15 years ago
- Keywords has-patch needs-testing added; needs-patch removed
- Milestone changed from Future Release to 2.9
untested patch attached
#8
@
15 years ago
wp() might also need to be looked into:
wp("post_type=post&$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");
#10
@
15 years ago
- Keywords has-patch needs-testing early removed
Leaving open to catch any further ones.
Note: See
TracTickets for help on using
tickets.
Just some that i came accross while creating a patch for #6772, The changes in
wp-includes/media.php
have been duplicated in a patch on that ticket. I'll refresh this patch if need be when that tickets fixed.