[wp-trac] [WordPress Trac] #25023: WordPress 3.6 deleting data on custom post meta
WordPress Trac
noreply at wordpress.org
Tue Aug 13 19:35:00 UTC 2013
#25023: WordPress 3.6 deleting data on custom post meta
---------------------------------------+------------------------------
Reporter: cdwharton | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.6
Severity: critical | Resolution:
Keywords: needs-patch needs-testing |
---------------------------------------+------------------------------
Comment (by helen):
Replying to [comment:5 cdwharton]:
> Is there a simple check I can make on the function to check if its blank
on initial load to just ignore until "Publish" is hit?
You need a nonce field and to check the nonce before continuing on in your
save_post callback.
> Is there a better way to add custom meta boxes than the example I have
provided?
In this particular example, I am wondering why you don't use the excerpt.
There are also a few things that should be changed, but Trac is not really
the place for a non-core code review.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25023#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list