Changeset 4310
- Timestamp:
- 10/31/2016 01:40:14 AM (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
r4197 r4310 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\API\Routes; 3 use WordPressdotorg\Plugin_Directory\Shortcodes\Reviews;4 3 use WordPressdotorg\Plugin_Directory\Plugin_Directory; 5 4 use WordPressdotorg\Plugin_Directory\Template; … … 106 105 $_pages = preg_split( "#<!--section=(.+?)-->#", $post->post_content, - 1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY ); 107 106 for ( $i = 0; $i < count( $_pages ); $i += 2 ) { 108 $result['sections'][ $_pages[ $i ] ] = apply_filters( 'the_content', $_pages[ $i + 1 ] , $_pages[ $i ]);109 } 110 $result['sections']['reviews'] = Reviews::display();107 $result['sections'][ $_pages[ $i ] ] = apply_filters( 'the_content', $_pages[ $i + 1 ] ); 108 } 109 $result['sections']['reviews'] = $this->get_plugin_reviews_markup( $post->post_name ); 111 110 $result['description'] = $result['sections']['description']; 112 111
Note: See TracChangeset
for help on using the changeset viewer.