| @@ -59,31 +59,8 @@ | ||
| 59 | 59 | $this->_addFilter( 'media_view_strings', 'setupMediaViewStrings' ); |
| 60 | 60 | $this->_addFilter( 'plugin_action_links', 'getPluginActionLinks', 10, 2 ); |
| 61 | 61 | $this->_addFilter( 'visualizer_logger_data', 'getLoggerData' ); |
| 62 | 62 | $this->_addFilter( 'visualizer_get_chart_counts', 'getChartCountsByTypeAndMeta' ); |
| 63 | - $this->_addFilter( 'visualizer_feedback_review_trigger', 'feedbackReviewTrigger' ); | |
| 64 | - } | |
| 65 | - | |
| 66 | - /** | |
| 67 | - * Whether to show the feedback review or not. | |
| 68 | - * | |
| 69 | - * @access public | |
| 70 | - */ | |
| 71 | - public function feedbackReviewTrigger( $dumb ) { | |
| 72 | - $query = new WP_Query( | |
| 73 | - array( | |
| 74 | - 'posts_per_page' => 50, | |
| 75 | - 'post_type' => Visualizer_Plugin::CPT_VISUALIZER, | |
| 76 | - 'fields' => 'ids', | |
| 77 | - 'update_post_meta_cache' => false, | |
| 78 | - 'update_post_term_cache' => false, | |
| 79 | - ) | |
| 80 | - ); | |
| 81 | - | |
| 82 | - if ( $query->have_posts() && $query->post_count > 0 ) { | |
| 83 | - return true; | |
| 84 | - } | |
| 85 | - return false; | |
| 86 | 63 | } |
| 87 | 64 | |
| 88 | 65 | /** |
| 89 | 66 | * Enqueues media scripts and styles. |