| @@ -223,9 +223,9 @@ | ||
| 223 | 223 | if ( !empty( $argName ) ) { |
| 224 | 224 | $argData = $params['functionArgsDict'][$argName]; |
| 225 | 225 | $snippet['args'][] = [ |
| 226 | 226 | 'name' => $argName, |
| 227 | - 'desc' => $argData['description'] ?? $argData['desc'] ?? '', // Support both 'description' and 'desc' | |
| 227 | + 'desc' => $argData['desc'], | |
| 228 | 228 | 'default' => $argData['default'], |
| 229 | 229 | 'required' => empty( $argData['default'] ), |
| 230 | 230 | 'type' => $argData['type'], |
| 231 | 231 | ]; |
| @@ -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', 'content_php', 'content_js']; | |
| 553 | + $scopes = ['backend', 'frontend', 'function', 'persistent', 'scheduled']; | |
| 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 if ( !empty( $filter['value'] ) ) { | |
| 691 | + } else { | |
| 692 | 692 | $value = esc_sql( $filter['value'] ); |
| 693 | 693 | $where[] = $this->wpdb->prepare( "scope = %s", $value ); |
| 694 | 694 | } |
| 695 | 695 | } |