WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/06/2020 04:30:43 AM (5 months ago)
Author:
dd32
Message:

Theme Directory: Block duplicate Theme URI's (except when by the current author) and add a "Are you sure you want to upload this here" type message for those who are lost.

Fixes #4039.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/query-modifications.php

    r10322 r10431  
    127127        empty( $query->query_vars['author_name'] ) &&
    128128        ! in_array( $query->query_vars['browse'], array( 'favorites', 'new', 'updated' ) ) &&
    129         empty( $query->query_vars['meta_query']['trac_sync_ticket_id'] ) // jobs/class-trac-sync.php - Always needs to find the post, and looks up via a meta search.
     129        empty( $query->query_vars['meta_query']['trac_sync_ticket_id'] ) && // jobs/class-trac-sync.php - Always needs to find the post, and looks up via a meta search.
     130        empty( $query->query_vars['meta_query']['theme_uri_search'] ) // class-wporg-themes-upload.php - Searching all known themes by meta value.
    130131    ) {
    131132        $query->query_vars['date_query']['recent_themes_only'] = array(
Note: See TracChangeset for help on using the changeset viewer.