change method to acces post data for wp.org compliance

This commit is contained in:
Leo Germani 2018-09-19 13:32:17 -03:00
parent 177bd3d502
commit 3302351ac7
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,8 @@ class TainacanThemeCollectionColor {
}
function save_meta($object) {
$postdata = file_get_contents("php://input");
$post = json_decode($postdata);
global $HTTP_RAW_POST_DATA;
$post = json_decode($HTTP_RAW_POST_DATA);
if ($object->can_edit()) {
if (isset($post->{$this->background_color})) {