Changeset 10221
- Timestamp:
- 08/29/2020 12:04:16 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-release-confirmation.php
r10214 r10221 42 42 current_user_can( 'plugin_admin_edit', $post_id ) 43 43 ) { 44 if ( 0 == $_REQUEST['release_confirmation'] ) { 44 if ( $_REQUEST['release_confirmation'] == get_post_meta( $post_id, 'release_confirmation', true ) ) { 45 // Do nothing, it's all good. 46 } else if ( 0 == $_REQUEST['release_confirmation'] ) { 45 47 // Disable 46 Tools::audit_log( 'Plugin release approvaldisabled.', $post_id );48 Tools::audit_log( 'Plugin release confirmation disabled.', $post_id ); 47 49 update_post_meta( $post_id, 'release_confirmation', 0 ); 48 50 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin-release-confirmation.php
r10217 r10221 117 117 118 118 // Fetch the releases first, to prefill them if needed with the old release_confirmation count. 119 Plugin_Directory::get_releases( );119 Plugin_Directory::get_releases( $plugin ); 120 120 121 121 // Update the Metadata.
Note: See TracChangeset
for help on using the changeset viewer.