Opened 18 years ago
Closed 17 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: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Optimization | Version: | 2.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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
@
17 years ago
- Keywords needs-patch added
- Milestone 2.9 → Future Release
- Type defect (bug) → enhancement
there are still a few in the default theme. do we want them fixed?
#6
@
17 years ago
get_bookmarks(), get_categories(), get_terms(), wp_get_object_terms() each have a few more
#7
@
17 years ago
- Keywords has-patch needs-testing added; needs-patch removed
- Milestone Future Release → 2.9
untested patch attached
#8
@
17 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
@
17 years ago
- Keywords has-patch needs-testing early removed
Leaving open to catch any further ones.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Just some that i came accross while creating a patch for #6772, The changes in
wp-includes/media.phphave been duplicated in a patch on that ticket. I'll refresh this patch if need be when that tickets fixed.