| @@ -80,9 +80,8 @@ | ||
| 80 | 80 | $this->_addAction( 'admin_menu', 'registerAdminMenu' ); |
| 81 | 81 | $this->_addFilter( 'media_view_strings', 'setupMediaViewStrings' ); |
| 82 | 82 | $this->_addFilter( 'plugin_action_links', 'getPluginActionLinks', 10, 2 ); |
| 83 | 83 | $this->_addFilter( 'plugin_row_meta', 'getPluginMetaLinks', 10, 2 ); |
| 84 | - $this->_addFilter( 'visualizer_logger_data', 'getLoggerData' ); | |
| 85 | 84 | $this->_addFilter( 'visualizer_feedback_review_trigger', 'feedbackReviewTrigger' ); |
| 86 | 85 | $this->_addFilter( 'themeisle_sdk_blackfriday_data', 'add_black_friday_data' ); |
| 87 | 86 | |
| 88 | 87 | // screen pagination |
| @@ -222,9 +221,9 @@ | ||
| 222 | 221 | |
| 223 | 222 | if ( $meta ) { |
| 224 | 223 | foreach ( $meta as $key => $value ) { |
| 225 | 224 | if ( 0 === strpos( $key, 'visualizer' ) ) { |
| 226 | - add_metadata( 'post', $revision_id, $key, maybe_unserialize( $value[0] ) ); | |
| 225 | + add_metadata( 'post', $revision_id, $key, self::maybe_decode_content( $value[0] ) ); | |
| 227 | 226 | } |
| 228 | 227 | } |
| 229 | 228 | } |
| 230 | 229 | } |
| @@ -250,9 +249,9 @@ | ||
| 250 | 249 | |
| 251 | 250 | if ( $meta ) { |
| 252 | 251 | foreach ( $meta as $key => $value ) { |
| 253 | 252 | if ( 0 === strpos( $key, 'visualizer' ) ) { |
| 254 | - add_post_meta( $post_id, $key, maybe_unserialize( $value[0] ) ); | |
| 253 | + add_post_meta( $post_id, $key, self::maybe_decode_content( $value[0] ) ); | |
| 255 | 254 | } |
| 256 | 255 | } |
| 257 | 256 | } |
| 258 | 257 | } |
| @@ -436,9 +435,9 @@ | ||
| 436 | 435 | 'library' => array( |
| 437 | 436 | 'filters' => $chart_types, |
| 438 | 437 | 'types' => array_keys( $chart_types ), |
| 439 | 438 | ), |
| 440 | - 'nonce' => wp_create_nonce(), | |
| 439 | + 'nonce' => wp_create_nonce( Visualizer_Plugin::ACTION_GET_CHARTS ), | |
| 441 | 440 | 'buildurl' => esc_url( add_query_arg( 'action', Visualizer_Plugin::ACTION_CREATE_CHART, admin_url( 'admin-ajax.php' ) ) ), |
| 442 | 441 | ); |
| 443 | 442 | |
| 444 | 443 | return $strings; |