Changeset 13620 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php
- Timestamp:
- 04/30/2024 05:26:07 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php
r13106 r13620 137 137 } 138 138 139 // Only include the fields requested. 140 $response = $this->remove_unexpected_fields( $response, $request, 'plugin_information' ); 139 // Only include the fields requested. If an error is present, we ignore the requested fields. 140 if ( ! isset( $response['error'] ) ) { 141 $response = $this->remove_unexpected_fields( $response, $request, 'plugin_information' ); 142 } 141 143 142 144 $this->output( (object) $response ); … … 256 258 ), true 257 259 ); 260 261 // Don't include unknown plugins OR closed plugins. 258 262 if ( isset( $plugin['error'] ) ) { 259 263 unset( $response['plugins'][ $i ] );
Note: See TracChangeset
for help on using the changeset viewer.