#1699 closed defect (bug) (fixed)
Finish cache and add array and object support in wp_postmeta
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | high | |
| Severity: | normal | Version: | 1.6 |
| Component: | Optimization | Keywords: | postmeta image uploading |
| Focuses: | Cc: |
Description
Post objects are going to need to store single arrays in wp_postmeta. This diff adds support for arrays and objects, just like in wp_options. This will be needed for the image uploading widget that I have created for the advanced editing form.
While I was in there I knocked out the rest of the post meta caching code.
Attachments (2)
Change History (5)
#1
@
21 years ago
We have to be careful about escaping data in the lower functions so that we don't end up double escaping. Our policy right now is to escape at the top level (such as GPC) and pass everything down already escaped. Adding escapes to add_post_meta() and friends could result in double escaping and break the assumptions made by existing plugins.
Note: See
TracTickets for help on using
tickets.
diff for wp-includes/functions.php