Ticket #6647 (new defect)

Opened 4 months ago

Last modified 4 months ago

Internally, pass arrays instead of query strings to functions that use wp_parse_args()

Reported by: ryan Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: General Version:
Severity: normal Keywords:
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

6647.diff (2.6 kB) - added by DD32 on 05/05/08 07:30:55.

Change History

05/05/08 07:30:55 changed by DD32

  • attachment 6647.diff added.

05/05/08 07:35:17 changed by DD32

attachment 6647.diff added.

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.

05/05/08 16:03:28 changed by ryan

(In [7894]) Use array calling style. Props DD32. see #6647

05/08/08 19:19:58 changed by ryan

(In [7911]) Use array calling style. see #6647