Changeset 5573 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
- Timestamp:
- 06/15/2017 02:05:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r5335 r5573 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' ) ); 35 36 add_action( 'edit_form_top', array( $this, 'show_permalink' ) ); 36 37 add_action( 'admin_notices', array( $this, 'add_post_status_notice' ) ); … … 112 113 wp_enqueue_script( 'plugin-admin-post-js', plugins_url( 'js/edit-form.js', Plugin_Directory\PLUGIN_FILE ), array( 'wp-util', 'wp-lists' ), 3 ); 113 114 wp_localize_script( 'plugin-admin-post-js', 'pluginDirectory', array( 115 'approvePluginAYS' => __( 'Are you sure you want to approve this plugin?', 'wporg-plugins' ), 116 'rejectPluginAYS' => __( 'Are you sure you want to reject this plugin?', 'wporg-plugins' ), 114 117 'removeCommitterAYS' => __( 'Are you sure you want to remove this committer?', 'wporg-plugins' ), 115 118 ) ); … … 160 163 $wp_list_table->prepare_items(); 161 164 } 165 } 166 167 /** 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; 162 181 } 163 182
Note: See TracChangeset
for help on using the changeset viewer.