PluginProbe
Code Engine – PHP Snippets, AI Functions & Automation for WordPress / 0.3.6
Code Engine – PHP Snippets, AI Functions & Automation for WordPress v0.3.6
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 +2 -2 0.3.20.3.6 View file →
@@ -549,9 +549,9 @@
549 549 */
550 550 private function formatParamsForFront( $params )
551 551 {
552 552 // Separate the scope tags from the tags
553 - $scopes = ['backend', 'frontend', 'function', 'persistent', 'scheduled'];
553 + $scopes = ['backend', 'frontend', 'function', 'persistent', 'scheduled', 'content_php', 'content_js'];
554 554
555 555 if ( isset( $params['tags'] ) && !empty( $params['tags'] ) ) {
556 556
557 557 $tags = array_map( function ( $tag ) use ( $scopes ) {
@@ -687,9 +687,9 @@
687 687 $scopes = array_map( function( $scope ) {
688 688 return esc_sql( $scope );
689 689 }, $filter['value'] );
690 690 $where[] = "scope IN ('" . implode( "', '", $scopes ) . "')";
691 - } else {
691 + } else if ( !empty( $filter['value'] ) ) {
692 692 $value = esc_sql( $filter['value'] );
693 693 $where[] = $this->wpdb->prepare( "scope = %s", $value );
694 694 }
695 695 }