Making WordPress.org

Changeset 1054


Ignore:
Timestamp:
12/18/2014 08:39:49 PM (10 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Change implementation of get_long_description() back to using post_content

File:
1 edited

Legend:

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

    r1052 r1054  
    10281028        $post = get_post( $post );
    10291029
    1030         if ( $long_description = get_post_meta( $post->ID, 'wporg_parsed_content', true ) ) {
    1031             $long_description = apply_filters( 'the_content', $long_description );
    1032         }
    1033 
    1034         return $long_description;
     1030        $description = $post->post_content;
     1031
     1032        if ( $description ) {
     1033            $description = apply_filters( 'the_content', apply_filters( 'get_the_content' , $description ) );
     1034        }
     1035
     1036        return $description;
    10351037    }
    10361038
Note: See TracChangeset for help on using the changeset viewer.