Making WordPress.org


Ignore:
Timestamp:
06/17/2016 08:27:41 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Introduce a reviews shortcode.

Displays a list of reviews about a plugin.
WIP, still need to properly grab an entire review, not just the rating.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r3409 r3420  
    247247        add_shortcode( 'wporg-plugin-upload',       array( __NAMESPACE__ . '\Shortcodes\Upload',      'display' ) );
    248248        add_shortcode( 'wporg-plugins-screenshots', array( __NAMESPACE__ . '\Shortcodes\Screenshots', 'display' ) );
     249        add_shortcode( 'wporg-plugins-reviews',     array( __NAMESPACE__ . '\Shortcodes\Reviews',     'display' ) );
    249250    }
    250251
     
    676677            'screenshots' => '[wporg-plugins-screenshots]',
    677678            'developers'  => '[wporg-plugins-developers]',
     679            'reviews'     => '[wporg-plugins-reviews]',
    678680        );
    679681
Note: See TracChangeset for help on using the changeset viewer.