Making WordPress.org

Changeset 736


Ignore:
Timestamp:
07/02/2014 07:51:48 PM (10 years ago)
Author:
coffee2code
Message:

Code Reference: fix check for "optional." in parameters doc parser

File:
1 edited

Legend:

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

    r724 r736  
    481481                    }
    482482                    $params[ $tag['variable'] ]['types'] = implode( '|', $types );
    483                     if ( strtolower( substr( $tag['content'], 0, 8 ) ) == "optional." ) {
     483                    if ( strtolower( substr( $tag['content'], 0, 9 ) ) == "optional." ) {
    484484                        $params[ $tag['variable'] ]['required'] = 'Optional';
    485                         $params[ $tag['variable'] ]['content'] = substr( $tag['content'], 9 );
     485                        $params[ $tag['variable'] ]['content'] = substr( $tag['content'], 10 );
    486486                    } else {
    487487                        $params[ $tag['variable'] ]['required'] = 'Required';
Note: See TracChangeset for help on using the changeset viewer.