Making WordPress.org


Ignore:
Timestamp:
04/23/2020 03:23:29 AM (6 years ago)
Author:
dd32
Message:

Developer: Avoid PHP notices when parsing hash notation filter params.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php

    r8843 r9770  
    509509        foreach ( $parts as $part ) {
    510510            $part = preg_replace( '/\s+/', ' ', $part );
    511             list( $wordtype, $type, $name, $description ) = explode( ' ', $part, 4 );
     511            list( $wordtype, $type, $name, $description ) = explode( ' ', $part . '    ', 4 ); // extra spaces ensure we'll always have 4 items.
    512512            $description = trim( $description );
    513513            $description = self::autolink_references( $description );
Note: See TracChangeset for help on using the changeset viewer.