[wp-trac] [WordPress Trac] #25023: WordPress 3.6 deleting data on custom post meta

WordPress Trac noreply at wordpress.org
Wed Aug 28 17:42:39 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:  Administration     |     Version:  3.6
 Severity:  critical           |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by cdwharton):

 Replying to [comment:18 c3mdigital]:
 > Replying to [comment:17 cdwharton]:
 > >
 > > Here is a video of the way to reproduce...
 > >
 > > http://youtu.be/-LufS4eTxqg
 > >
 > > Incidentally, I've tried it with a plugin and the issue does not
 replicate - I don't know whether plugin meta is saved to a different table
 than theme meta?
 > >
 > > Anyway, I hope this helps and sorry its taken a while to get round to
 providing an example.
 > >
 >
 > cdwharton,
 > Thanks for taking the time to respond and capture the video.  I could
 still not reproduce using your exact steps with the zip of theme you
 provided on a fresh install of 3.5.2.  then upgrading to 3.6.  We will
 keep investigating.
 >
 > If you still have the install up from your video there is one test you
 can do that would be helpful.  Add the code below to your functions.php
 then browse to any page on the front and copy and paste the output here.
 >
 >
 > {{{
 >       add_action( 'get_header', 'trac_bug_test' );
 >       function trac_bug_test() {
 >               global $wpdb;
 >               $var = $wpdb->get_results( "SELECT * FROM $wpdb->postmeta
 WHERE meta_key = 'bug'" );
 >               print '<pre>';
 >               print_r( $var );
 >               print '</pre>';
 >               die();
 >       }
 > }}}
 >

 I really don't understand how you couldn't get the same issue? Maybe its
 MySQL or OS related?

 Here is the output from your script...

 Array
 (
     [0] => stdClass Object
         (
             [meta_id] => 4
             [post_id] => 2
             [meta_key] => bug
             [meta_value] =>
         )

 )


 Also, database info...

 Database server

 Server: Localhost via UNIX socket
 Software: MySQL
 Software version: 5.5.29 - Source distribution
 Protocol version: 10
 User: root at localhost
 Server charset: UTF-8 Unicode (utf8)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25023#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list