Making WordPress.org


Ignore:
Timestamp:
07/26/2017 12:23:32 AM (9 years ago)
Author:
tellyworth
Message:

Plugin directory admin: restore Quick Edit and allow editing slugs from there. Props @SergeyBiryukov

Fixes #2249

File:
1 edited

Legend:

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

    r5691 r5714  
    3333        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) );
    3434        add_filter( 'admin_head-edit.php', array( $this, 'plugin_posts_list_table' ) );
    35         add_filter( 'post_row_actions', array( $this, 'plugin_row_actions' ) );
    3635        add_action( 'edit_form_top', array( $this, 'show_permalink' ) );
    3736        add_action( 'admin_notices', array( $this, 'add_post_status_notice' ) );
     
    166165
    167166    /**
    168      * Disables Quick Edit for plugins.
    169      *
    170      * @param array $actions An array of row action links.
    171      * @return array Filtered array of row action links.
    172      */
    173     public function plugin_row_actions( $actions ) {
    174         global $post_type;
    175 
    176         if ( 'plugin' === $post_type ) {
    177             unset( $actions['inline hide-if-no-js'] );
    178         }
    179 
    180         return $actions;
    181     }
    182 
    183     /**
    184167     * Rejects plugins in bulk.
    185168     */
Note: See TracChangeset for help on using the changeset viewer.