Make WordPress Core

Changeset 57393

Timestamp:
01/30/2024 02:34:52 PM (6 months ago)
Author:
jorbin
Message:

Grouped Backports to the 6.2 branch

  • Install: When populating options, maybe_serialize instead of always serialize.
  • Uploads: Check for and verify ZIP archives.

Merges [57388] and [57389] to the 6.2 branch.

Props costdev, peterwilsoncc, azaozz, tykoted, johnbillion, desrosj, afragen, jorbin, xknown.

Location:
branches/6.2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/6.2

  • branches/6.2/src/wp-admin/includes/class-file-upload-upgrader.php

    r54133 r57393  
    7070            }
    7171
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
    7296            $this->filename = $_FILES[ $form ]['name'];
    7397            $this->package  = $file['file'];
  • branches/6.2/src/wp-admin/includes/schema.php

    r54891 r57393  
    595595        }
    596596
    597         if ( is_array( $value ) ) {
    598             $value = serialize( $value );
    599         }
    600 
    601597        if ( ! empty( $insert ) ) {
    602598            $insert .= ', ';
    603599        }
     600
     601
    604602
    605603        $insert .= $wpdb->prepare( '(%s, %s, %s)', $option, $value, $autoload );
  • branches/6.2/src/wp-admin/update.php

    r51475 r57393  
    154154
    155155        check_admin_referer( 'plugin-upload' );
     156
     157
     158
     159
    156160
    157161        $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' );
     
    302306
    303307        check_admin_referer( 'theme-upload' );
     308
     309
     310
     311
    304312
    305313        $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset for help on using the changeset viewer.