Changeset 13512 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
- Timestamp:
- 04/12/2024 05:24:54 AM (10 months ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.