Making WordPress.org

Changeset 3506


Ignore:
Timestamp:
06/20/2016 02:41:39 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Add a metabox to allow committers to change the primary author.

See #1571.

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

Legend:

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

    r3477 r3506  
    5050        add_filter( 'wp_ajax_add-committer',    array( __NAMESPACE__ . '\Metabox\Committers', 'add_committer'    ) );
    5151        add_filter( 'wp_ajax_delete-committer', array( __NAMESPACE__ . '\Metabox\Committers', 'remove_committer' ) );
     52        add_action( 'wp_ajax_plugin-author-lookup', array( __NAMESPACE__ . '\Metabox\Author', 'lookup_author' ) );
    5253
    5354        // Page access within wp-admin.
     
    400401     */
    401402    public function register_admin_metaboxes( $post_type, $post ) {
    402         if ( 'plugin' != $post_type ) {
     403        if ( 'plugin' !== $post_type ) {
    403404            return;
    404405        }
     
    427428            );
    428429        }
     430
     431        add_meta_box(
     432            'authordiv',
     433            __( 'Author', 'wporg-plugins' ),
     434            array( __NAMESPACE__ . '\Metabox\Author', 'display' ),
     435            'plugin', 'normal'
     436        );
     437
    429438
    430439        add_meta_box(
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r3502 r3506  
    9090            ),
    9191            'description'     => __( 'A Repo Plugin', 'wporg-plugins' ),
    92             'supports'        => array( 'comments' ),
     92            'supports'        => array( 'comments', 'author' ),
    9393            'public'          => true,
    9494            'show_ui'         => true,
Note: See TracChangeset for help on using the changeset viewer.