Changeset 10316 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 09/29/2020 06:46:43 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r10267 r10316 1518 1518 */ 1519 1519 public function split_post_content_into_pages( $content ) { 1520 $_pages = preg_split( '#<!--section=(.+?)-->#', $content, - 1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );1520 $_pages = preg_split( '#<!--section=(.+?)-->#', ltrim( $content ), - 1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); 1521 1521 $content_pages = array( 1522 1522 'screenshots' => '[wporg-plugins-screenshots]', … … 1529 1529 // Don't overwrite existing tabs. 1530 1530 if ( ! isset( $content_pages[ $_pages[ $i ] ] ) ) { 1531 $content_pages[ $_pages[ $i ] ] = $_pages[ $i + 1 ] ;1531 $content_pages[ $_pages[ $i ] ] = $_pages[ $i + 1 ] ?? ''; 1532 1532 } 1533 1533 }
Note: See TracChangeset
for help on using the changeset viewer.