mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Use maybe_serialize() where appropriate. fixes #19617.
git-svn-id: https://develop.svn.wordpress.org/trunk@20612 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1212,9 +1212,9 @@ function wp_check_browser_version() {
|
||||
* 'img_src' - string - An image representing the browser
|
||||
* 'img_src_ssl' - string - An image (over SSL) representing the browser
|
||||
*/
|
||||
$response = unserialize( wp_remote_retrieve_body( $response ) );
|
||||
$response = maybe_unserialize( wp_remote_retrieve_body( $response ) );
|
||||
|
||||
if ( ! $response )
|
||||
if ( ! is_array( $response ) )
|
||||
return false;
|
||||
|
||||
set_site_transient( 'browser_' . $key, $response, 604800 ); // cache for 1 week
|
||||
|
||||
Reference in New Issue
Block a user