Changeset 3863
- Timestamp:
- 08/26/2016 08:34:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
r3496 r3863 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\API\Routes; 3 use WordPressdotorg\Plugin_Directory\Shortcodes\Reviews; 3 4 use WordPressdotorg\Plugin_Directory\Plugin_Directory; 4 5 use WordPressdotorg\Plugin_Directory\Template; … … 96 97 $_pages = preg_split( "#<!--section=(.+?)-->#", $post->post_content, - 1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); 97 98 for ( $i = 0; $i < count( $_pages ); $i += 2 ) { 98 $result['sections'][ $_pages[ $i ] ] = apply_filters( 'the_content', $_pages[ $i + 1 ] );99 } 100 $result['sections']['reviews'] = $this->get_plugin_reviews_markup( $post->post_name);99 $result['sections'][ $_pages[ $i ] ] = apply_filters( 'the_content', $_pages[ $i + 1 ], $_pages[ $i ] ); 100 } 101 $result['sections']['reviews'] = Reviews::display(); 101 102 $result['description'] = $result['sections']['description']; 102 103
Note: See TracChangeset
for help on using the changeset viewer.