Changeset 5714 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
- Timestamp:
- 07/26/2017 12:23:32 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r5691 r5714 33 33 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) ); 34 34 add_filter( 'admin_head-edit.php', array( $this, 'plugin_posts_list_table' ) ); 35 add_filter( 'post_row_actions', array( $this, 'plugin_row_actions' ) );36 35 add_action( 'edit_form_top', array( $this, 'show_permalink' ) ); 37 36 add_action( 'admin_notices', array( $this, 'add_post_status_notice' ) ); … … 166 165 167 166 /** 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 /**184 167 * Rejects plugins in bulk. 185 168 */
Note: See TracChangeset
for help on using the changeset viewer.