Making WordPress.org


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

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

See #1571.

File:
1 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(
Note: See TracChangeset for help on using the changeset viewer.