Making WordPress.org

Changeset 6382


Ignore:
Timestamp:
01/12/2018 09:35:19 PM (9 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Check that string isn't empty before checking its first character.

File:
1 edited

Legend:

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

    r5606 r6382  
    459459
    460460                        // Handle nested hashes.
    461                         if ( '{' === $description[0] || '{' === $name ) {
     461                        if ( ( $description && '{' === $description[0] ) || '{' === $name ) {
    462462                                $description = ltrim( $description, '{' ) . '<ul class="param-hash">';
    463463                                $skip_closing_li = true;
Note: See TracChangeset for help on using the changeset viewer.