Making WordPress.org


Ignore:
Timestamp:
09/29/2014 05:53:13 AM (12 years ago)
Author:
coffee2code
Message:

Code Reference: ensure there is content string before checking first character

File:
1 edited

Legend:

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

    r868 r875  
    502502
    503503                                        // Normalize spacing at beginning of hash notation params.
    504                                         if ( '{' == $tag['content'][0] ) {
     504                                        if ( $tag['content'] && '{' == $tag['content'][0] ) {
    505505                                                $tag['content'] = '{ ' . trim( substr( $tag['content'], 1 ) );
    506506                                        }
Note: See TracChangeset for help on using the changeset viewer.