Changeset 14733
- Timestamp:
- 03/19/2026 02:13:44 PM (2 weeks ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory
- Files:
-
- 2 edited
-
prompts/class-address-review-feedback.php (modified) (1 diff)
-
tools/class-submit-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/prompts/class-address-review-feedback.php
r14729 r14733 55 55 public static function execute( array $input ): array { 56 56 // Defensive fallback — input_schema marks plugin_slug as required but the framework may not enforce it. 57 $plugin_slug = sanitize_t itle( $input['plugin_slug'] ?? '{plugin_slug}' );57 $plugin_slug = sanitize_text_field( $input['plugin_slug'] ?? '{plugin_slug}' ); 58 58 59 59 $text = <<<MD -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/tools/class-submit-plugin.php
r14729 r14733 434 434 */ 435 435 private static function prepare_zip_from_base64( string $base64 ): array|string { 436 if ( strlen( $base64 ) > 64 * MB_IN_BYTES) {436 if ( strlen( $base64 ) > wp_max_upload_size() ) { 437 437 return self::error_response( 438 438 'zip_too_large', 439 'The zip_base64 payload exceeds the 64 MB limit.',440 ' Use zip_url instead for larger plugins.'439 sprintf( 'The zip_base64 payload exceeds the %s upload limit.', size_format( wp_max_upload_size() ) ), 440 'Reduce the plugin ZIP file size and try again.' 441 441 ); 442 442 }
Note: See TracChangeset
for help on using the changeset viewer.