Making WordPress.org

Changeset 1104


Ignore:
Timestamp:
01/08/2015 06:13:42 PM (10 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Rename get_long_description() to get_description() to match documentation standard nomenclature

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
Files:
3 edited

Legend:

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

    r1065 r1104  
    77    <h1><a href="<?php the_permalink() ?>"><?php echo get_signature(); ?></a></h1>
    88
    9     <section class="description">
     9    <section class="summary">
    1010        <?php echo get_summary(); ?>
    1111    </section>
     
    1313<?php if ( is_single() ) : ?>
    1414
    15     <section class="long-description">
    16         <?php echo get_long_description(); ?>
     15    <section class="description">
     16        <?php echo get_description(); ?>
    1717    </section>
    1818
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/content-wp-parser-hook.php

    r1065 r1104  
    44
    55    <h1><a href="<?php the_permalink() ?>"><?php echo get_signature(); ?></a></h1>
    6     <section class="description">
     6    <section class="summary">
    77        <?php echo get_summary(); ?>
    88    </section>
     
    1010    <?php if ( is_single() ) : ?>
    1111
    12     <section class="long-description">
    13         <?php echo get_long_description(); ?>
     12    <section class="description">
     13        <?php echo get_description(); ?>
    1414    </section>
    1515
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r1092 r1104  
    10501050
    10511051    /**
    1052      * Gets the long description.
    1053      *
    1054      * The long description is stored in the 'wporg_parsed_content' meta field.
     1052     * Gets the description.
     1053     *
     1054     * The (long) description is stored in the 'post_content' get_post_field.
    10551055     *
    10561056     * @param  null|WP_Post Optiona. The post.
    10571057     * @return string
    10581058     */
    1059     function get_long_description( $post = null ) {
     1059    function get_description( $post = null ) {
    10601060        $post = get_post( $post );
    10611061
Note: See TracChangeset for help on using the changeset viewer.