Changeset 3036 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
- Timestamp:
- 04/28/2016 06:01:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
r3034 r3036 25 25 */ 26 26 private function __construct() { 27 add_action( ' publish_plugin', array( $this, 'publish' ), 10, 2 );27 add_action( 'approved_plugin', array( $this, 'approved' ), 10, 2 ); 28 28 add_action( 'rejected_plugin', array( $this, 'rejected' ), 10, 2 ); 29 29 } … … 66 66 67 67 /** 68 * Fires when a post is transitioned to ' publish'.68 * Fires when a post is transitioned to 'approved'. 69 69 * 70 70 * @param int $post_id Post ID. 71 71 * @param \WP_Post $post Post object. 72 72 */ 73 public function publish( $post_id, $post ) {73 public function approved( $post_id, $post ) { 74 74 $attachments = get_attached_media( 'application/zip', $post_id ); 75 75
Note: See TracChangeset
for help on using the changeset viewer.