Changeset 5867 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
- Timestamp:
- 09/03/2017 09:43:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
r5727 r5867 49 49 add_action( 'do_meta_boxes', array( $this, 'replace_title_global' ) ); 50 50 51 add_filter( 'postbox_classes_plugin_internal-notes', array( __NAMESPACE__ . '\Metabox\Internal_Notes', 'postbox_classes' ) ); 52 add_filter( 'postbox_classes_plugin_plugin-committers', array( __NAMESPACE__ . '\Metabox\Committers', 'postbox_classes' ) ); 53 add_filter( 'wp_ajax_add-committer', array( __NAMESPACE__ . '\Metabox\Committers', 'add_committer' ) ); 54 add_filter( 'wp_ajax_delete-committer', array( __NAMESPACE__ . '\Metabox\Committers', 'remove_committer' ) ); 51 add_filter( 'postbox_classes_plugin_internal-notes', array( __NAMESPACE__ . '\Metabox\Internal_Notes', 'postbox_classes' ) ); 52 add_filter( 'postbox_classes_plugin_plugin-committers', array( __NAMESPACE__ . '\Metabox\Committers', 'postbox_classes' ) ); 53 add_filter( 'postbox_classes_plugin_plugin-support-reps', array( __NAMESPACE__ . '\Metabox\Support_Reps', 'postbox_classes' ) ); 54 add_filter( 'wp_ajax_add-committer', array( __NAMESPACE__ . '\Metabox\Committers', 'add_committer' ) ); 55 add_filter( 'wp_ajax_delete-committer', array( __NAMESPACE__ . '\Metabox\Committers', 'remove_committer' ) ); 56 add_filter( 'wp_ajax_add-support-rep', array( __NAMESPACE__ . '\Metabox\Support_Reps', 'add_support_rep' ) ); 57 add_filter( 'wp_ajax_delete-support-rep', array( __NAMESPACE__ . '\Metabox\Support_Reps', 'remove_support_rep' ) ); 55 58 add_action( 'wp_ajax_plugin-author-lookup', array( __NAMESPACE__ . '\Metabox\Author', 'lookup_author' ) ); 56 59 … … 115 118 wp_enqueue_script( 'plugin-admin-post-js', plugins_url( 'js/edit-form.js', Plugin_Directory\PLUGIN_FILE ), array( 'wp-util', 'wp-lists' ), 5 ); 116 119 wp_localize_script( 'plugin-admin-post-js', 'pluginDirectory', array( 117 'approvePluginAYS' => __( 'Are you sure you want to approve this plugin?', 'wporg-plugins' ), 118 'rejectPluginAYS' => __( 'Are you sure you want to reject this plugin?', 'wporg-plugins' ), 119 'removeCommitterAYS' => __( 'Are you sure you want to remove this committer?', 'wporg-plugins' ), 120 'approvePluginAYS' => __( 'Are you sure you want to approve this plugin?', 'wporg-plugins' ), 121 'rejectPluginAYS' => __( 'Are you sure you want to reject this plugin?', 'wporg-plugins' ), 122 'removeCommitterAYS' => __( 'Are you sure you want to remove this committer?', 'wporg-plugins' ), 123 'removeSupportRepAYS' => __( 'Are you sure you want to remove this support rep?', 'wporg-plugins' ), 120 124 ) ); 121 125 break; … … 437 441 ); 438 442 443 add_meta_box( 444 'plugin-support-reps', 445 __( 'Plugin Support Reps', 'wporg-plugins' ), 446 array( __NAMESPACE__ . '\Metabox\Support_Reps', 'display' ), 447 'plugin', 'side' 448 ); 439 449 } 440 450 … … 496 506 * Saves a comment that is not built-in. 497 507 * 498 * We pretty much have to replicate all of `wp_ajax_replyto_comment()` to be able to comment on draftposts.508 * We pretty much have to replicate all of `wp_ajax_replyto_comment()` to be able to comment on pending posts. 499 509 */ 500 510 public function save_custom_comment() {
Note: See TracChangeset
for help on using the changeset viewer.