Changeset 10602
- Timestamp:
- 01/19/2021 11:07:16 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
r10599 r10602 499 499 500 500 if ( ! empty( $topic['tax_input'][ $taxonomy ] ) ) { 501 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," ) ); 503 } 504 501 505 // Loop through the proposed terms 502 506 foreach ( $topic['tax_input'][ $taxonomy ] as $i => $term ) { … … 527 531 528 532 if ( ! is_array( $terms ) ) { 529 $terms = explode( ',', trim( $terms, " \n\t\r\0\x0B," ) );533 $terms = preg_split( '/,\s+/', trim( $terms, " \n\t\r\0\x0B," ) ); 530 534 } 531 535
Note: See TracChangeset
for help on using the changeset viewer.