PluginProbe
Code Engine – PHP Snippets, AI Functions & Automation for WordPress / 0.4.8
Code Engine – PHP Snippets, AI Functions & Automation for WordPress v0.4.8
0.5.7 0.5.6 0.5.5 0.5.4 0.5.3 0.5.2 0.5.1 0.5.0 0.4.9 0.4.8 0.4.7 0.4.6 trunk 0.0.1 0.0.2 0.2.8 0.2.9 0.3.0 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 All 33 releases
← All changes | classes/modules/snippet.php +7 -1 0.4.70.4.8 View file →
@@ -586,9 +586,12 @@
586 586 $stats[$scope] = $this->wpdb->get_var( $this->wpdb->prepare( "SELECT COUNT( * ) FROM $this->table_name WHERE scope = %s", $scope ) );
587 587 }
588 588 $stats['all'] += $stats[$scope];
589 589 }
590 -
590 +
591 + // Combined count for the "Content" filter (PHP + JS). Not added to 'all', already counted above.
592 + $stats['content'] = (int) $stats['content_php'] + (int) $stats['content_js'];
593 +
591 594 return $stats;
592 595 }
593 596
594 597 public function import( )
@@ -668,8 +671,11 @@
668 671 $freshFilters[] = [ 'accessor' => 'tags', 'value' => $filter['value'] ];
669 672 }
670 673 else if ( $filter['accessor'] === 'scope' && $filter['value'] === 'global' ) {
671 674 $freshFilters[] = [ 'accessor' => 'scope', 'value' => ['backend', 'frontend', 'persistent'] ];
675 + }
676 + else if ( $filter['accessor'] === 'scope' && $filter['value'] === 'content' ) {
677 + $freshFilters[] = [ 'accessor' => 'scope', 'value' => ['content_php', 'content_js'] ];
672 678 }
673 679 else {
674 680 $freshFilters[] = $filter;
675 681 }