Skip to:
Content

bbPress.org

Changeset 7602


Ignore:
Timestamp:
09/19/2026 09:12:59 AM (36 hours ago)
Author:
johnjamesjacoby
Message:

Importers: Normalize final compatibility details.

Correct the PHPWind status-map documentation to match its source bitmask, reject malformed scalar values in the example password verifier, and add regression coverage. Align anonymous-author detection with trunk to avoid loose-comparison behavior on PHP 7.2.

In branches/2.6, for 2.6.18.

See #3684.
See #3686.

Location:
branches/2.6
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/admin/classes/class-bbp-converter-base.php

    r7600 r7602  
    13491349         */
    13501350        private function callback_check_anonymous( $field ) {
    1351                 $field = ( $this->callback_userid( $field ) == 0 )
     1351                $field = ! $this->callback_userid( $field )
    13521352                        ? 'true'
    13531353                        : 'false';
  • branches/2.6/src/includes/admin/converters/Example.php

    r7588 r7602  
    715715
    716716                // Bail if missing values
    717                 if ( ! is_array( $pass_array ) || ! isset( $pass_array['hash'], $pass_array['salt'] ) ) {
     717                if ( ! is_string( $password ) || ! is_array( $pass_array ) || ! isset( $pass_array['hash'], $pass_array['salt'] ) || ! is_string( $pass_array['hash'] ) || ! is_string( $pass_array['salt'] ) ) {
    718718                        return false;
    719719                }
  • branches/2.6/src/includes/admin/converters/PHPWind.php

    r7592 r7602  
    297297                );
    298298
    299                 // Topic status (Open or Closed, PHPWind v9.x 0=no, 1=closed & 2=open)
     299                // Topic status (PHPWind v9.x bitmask: 1=locked & 2=closed)
    300300                $this->field_map[] = array(
    301301                        'from_tablename'  => 'bbs_threads',
Note: See TracChangeset for help on using the changeset viewer.