fix theme sniffer error

This commit is contained in:
Leo Germani 2018-09-04 11:37:15 -03:00
parent 9fb44f9e1b
commit bc7416b6ad
1 changed files with 3 additions and 3 deletions

View File

@ -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})) {