Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1699 closed defect (bug) (fixed)

Finish cache and add array and object support in wp_postmeta

Reported by: skeltoac Owned by:
Priority: high Milestone:
Component: Optimization Version: 1.6
Severity: normal Keywords: postmeta image uploading
Cc: Focuses:

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)

1699.diff​ (4.0 KB ) - added by skeltoac 21 years ago.
diff for wp-includes/functions.php
1699.2.diff​ (4.3 KB ) - added by skeltoac 21 years ago.
Now escaping arrays/objects only

Download all attachments as: .zip

Change History (5)

@skeltoac
21 years ago

diff for wp-includes/functions.php

#1 @ryan
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.

@skeltoac
21 years ago

Now escaping arrays/objects only

#2 @ryan
21 years ago

  • Resolution → fixed
  • Status new → closed

(In [2907]) Array and object support for post meta from skeltoac. fixes #1699

#3 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.