fix theme sniffer error
This commit is contained in:
parent
9fb44f9e1b
commit
bc7416b6ad
|
@ -65,8 +65,8 @@ class TainacanThemeCollectionColor {
|
|||
}
|
||||
|
||||
function save_meta($object) {
|
||||
global $HTTP_RAW_POST_DATA;
|
||||
$post = json_decode($HTTP_RAW_POST_DATA);
|
||||
$postdata = file_get_contents("php://input");
|
||||
$post = json_decode($postdata);
|
||||
|
||||
if ($object->can_edit()) {
|
||||
if (isset($post->{$this->meta_name})) {
|
||||
|
@ -81,4 +81,4 @@ class TainacanThemeCollectionColor {
|
|||
|
||||
new TainacanThemeCollectionColor();
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue