Making WordPress.org


Ignore:
Timestamp:
12/23/2014 08:25:08 PM (12 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Move Explanations below Parameters

File:
1 edited

Legend:

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

    r1062 r1065  
    5151        */ ?>
    5252
    53         <?php
    54         $explanation = get_explanation_field( 'post_content', get_the_ID() );
    55         if ( $explanation ) :
    56                 ?>
    57                 <hr/>
    58                 <section class="explanation">
    59                         <h2><?php _e( 'Explanation', 'wporg' ); ?></h2>
    60                         <?php echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); ?>
    61                 </section>
    62         <?php endif; ?>
    63 
    6453        <?php if ( $params = get_params() ) : ?>
    6554        <hr/>
     
    9079                </dl>
    9180        </section>
     81        <?php endif; ?>
     82
     83        <?php
     84        $explanation = get_explanation_field( 'post_content', get_the_ID() );
     85        if ( $explanation ) :
     86                ?>
     87                <hr/>
     88                <section class="explanation">
     89                        <h2><?php _e( 'Explanation', 'wporg' ); ?></h2>
     90                        <?php echo apply_filters( 'the_content', apply_filters( 'get_the_content', $explanation ) ); ?>
     91                </section>
    9292        <?php endif; ?>
    9393
Note: See TracChangeset for help on using the changeset viewer.