WordPress.org

Making WordPress.org

Changeset 3219


Ignore:
Timestamp:
05/23/2016 08:34:16 PM (6 years ago)
Author:
obenland
Message:

Plugin Directory: Add shortcode to display developer information.

Will display all contributors to a plugin, as well as trac and svn links, etc.

See #1719.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
1 added
1 edited

Legend:

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

    r3191 r3219  
    199199     */
    200200    public function register_shortcodes() {
     201        add_shortcode( 'wporg-plugins-developers',  array( __NAMESPACE__ . '\Shortcodes\Developers',  'display' ) );
    201202        add_shortcode( 'wporg-plugin-upload',       array( __NAMESPACE__ . '\Shortcodes\Upload',      'display' ) );
    202203        add_shortcode( 'wporg-plugins-screenshots', array( __NAMESPACE__ . '\Shortcodes\Screenshots', 'display' ) );
    203204    //  add_shortcode( 'wporg-plugins-stats',       array( __NAMESPACE__ . '\Shortcodes\Stats',       'display' ) );
    204     //  add_shortcode( 'wporg-plugins-developer',   array( __NAMESPACE__ . '\Shortcodes\Developer',   'display' ) );
    205205    }
    206206
    207207    public function register_widgets() {
     208        register_widget( __NAMESPACE__ . '\Widgets\Meta' );
    208209        register_widget( __NAMESPACE__ . '\Widgets\Ratings' );
    209210        register_widget( __NAMESPACE__ . '\Widgets\Support' );
    210         register_widget( __NAMESPACE__ . '\Widgets\Meta' );
    211211    }
    212212
     
    521521            'screenshots' => '[wporg-plugins-screenshots]',
    522522            'stats'       => '[wporg-plugins-stats]',
    523             'developers'  => '[wporg-plugins-developer]',
     523            'developers'  => '[wporg-plugins-developers]',
    524524        );
    525525
Note: See TracChangeset for help on using the changeset viewer.