WordPress.org

Make WordPress Core

Ticket #51683: 51683.diff

File 51683.diff, 1.3 KB (added by jorbin, 3 months ago)
  • src/wp-includes/class-wp-query.php

     
    791791                        $qv['menu_order'] = absint( $qv['menu_order'] );
    792792                }
    793793
    794                 // Fairly insane upper bound for search string lengths.
     794                // Fairly large, potentially too large, upper bound for search string lengths.
    795795                if ( ! is_scalar( $qv['s'] ) || ( ! empty( $qv['s'] ) && strlen( $qv['s'] ) > 1600 ) ) {
    796796                        $qv['s'] = '';
    797797                }
  • src/wp-includes/functions.php

     
    17481748         */
    17491749        $wp_tables = $wpdb->tables();
    17501750        foreach ( $wp_tables as $table ) {
    1751                 // The existence of custom user tables shouldn't suggest an insane state or prevent a clean installation.
     1751                // The existence of custom user tables shouldn't suggest an unwise state or prevent a clean installation.
    17521752                if ( defined( 'CUSTOM_USER_TABLE' ) && CUSTOM_USER_TABLE == $table ) {
    17531753                        continue;
    17541754                }
     
    17641764                        continue;
    17651765                }
    17661766
    1767                 // One or more tables exist. We are insane.
     1767                // One or more tables exist. This is not good.
    17681768
    17691769                wp_load_translations_early();
    17701770