[wp-trac] [WordPress Trac] #37635: BUG in get_option

WordPress Trac noreply at wordpress.org
Thu Aug 11 13:46:14 UTC 2016


#37635: BUG in get_option
--------------------------------+------------------------------
 Reporter:  tazotodua           |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Options, Meta APIs


Comment:

 Previously: #18007, #21109.

 Could not reproduce, this test script displays correct data on my install:
 {{{
 require 'wp-load.php';

 $content = file_get_contents( 'http://pastebin.com/raw/hxwETuHX' );
 $content = unserialize( $content );

 add_option( 'get_option_unserialize_test', $content );

 var_dump( get_option( 'get_option_unserialize_test' ) );

 delete_option( 'get_option_unserialize_test' );
 }}}

 What is the `DB_CHARSET` value in your `wp-config.php` file and the actual
 DB charset?

 This appears to be a misconfiguration issue like in #21109 or
 [comment:ticket:6784:3].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37635#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list