Making WordPress.org


Ignore:
Timestamp:
01/19/2021 11:09:41 PM (6 years ago)
Author:
dd32
Message:

Support: Handle one,two being passed not just one, two. This shouldn't be needed, but better to be forwards compatible.

Amends [10602].
See #5344.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php

    r10602 r10603  
    500500                if ( ! empty( $topic['tax_input'][ $taxonomy ] ) ) {
    501501                        if ( ! is_array( $topic['tax_input'][ $taxonomy ] ) ) {
    502                                 $topic['tax_input'][ $taxonomy ] = preg_split( '/,\s+/', trim( $topic['tax_input'][ $taxonomy ], " \n\t\r\0\x0B," ) );
     502                                $topic['tax_input'][ $taxonomy ] = preg_split( '/,\s*/', trim( $topic['tax_input'][ $taxonomy ], " \n\t\r\0\x0B," ) );
    503503                        }
    504504
     
    531531
    532532                if ( ! is_array( $terms ) ) {
    533                         $terms = preg_split( '/,\s+/', trim( $terms, " \n\t\r\0\x0B," ) );
     533                        $terms = preg_split( '/,\s*/', trim( $terms, " \n\t\r\0\x0B," ) );
    534534                }
    535535
Note: See TracChangeset for help on using the changeset viewer.