Making WordPress.org


Ignore:
Timestamp:
04/12/2024 05:24:54 AM (10 months ago)
Author:
dd32
Message:

Plugin Directory: Add missed changes in [13507].

See #7386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

    r13307 r13512  
    551551        $plugin = get_post( $postarr['ID'] );
    552552        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            }
    558564        }
    559565
Note: See TracChangeset for help on using the changeset viewer.