Changeset 13512
- Timestamp:
- 04/12/2024 05:24:54 AM (9 months 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/class-customizations.php
r13307 r13512 551 551 $plugin = get_post( $postarr['ID'] ); 552 552 if ( $plugin && $plugin->post_name !== $data['post_name'] ) { 553 Tools::audit_log( sprintf( 554 "Slug changed from '%s' to '%s'.", 555 $plugin->post_name, 556 $data['post_name'] 557 ), $plugin->ID ); 553 // Only log if the slugs don't appear to be rejection-related. 554 if ( 555 ! preg_match( '!^rejected-.+-rejected$!', $post->post_name ) && 556 ! preg_match( '!^rejected-.+-rejected$!', $data['post_name'] ) 557 ) { 558 Tools::audit_log( sprintf( 559 "Slug changed from '%s' to '%s'.", 560 $plugin->post_name, 561 $data['post_name'] 562 ), $plugin->ID ); 563 } 558 564 } 559 565 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/js/edit-form.js
r13109 r13512 53 53 54 54 setPluginStatus: function() { 55 if ( 'approved' === $(this).val() ) { 55 var $this = $(this), 56 status = $this.val(); 57 58 if ( 'new' == status ) { 59 jQuery('#assigned_reviewer').val(0); 60 61 } else if ( 'pending' == status && $this.hasClass('pending-and-assign') ) { 62 jQuery('#assigned_reviewer').val( userSettings.uid ); 63 64 } else if ( 'approved' === status ) { 56 65 return confirm( pluginDirectory.approvePluginAYS ); 57 } else if ( 'rejected' === $(this).val() ) { 66 67 } else if ( 'rejected' === status ) { 58 68 return confirm( pluginDirectory.rejectPluginAYS ); 69 59 70 } else { 60 71 return true;
Note: See TracChangeset
for help on using the changeset viewer.