Making WordPress.org


Ignore:
Timestamp:
01/07/2019 02:50:36 AM (8 years ago)
Author:
dd32
Message:

Support Forums: non-existent theme/plugin support views should have a 404 header.

Fixes #4042.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php

    r7243 r8030  
    7272                $slug = get_query_var( 'wporg_theme' );
    7373                if ( ! $slug ) {
     74                        status_header( 404 );
    7475                        return;
    7576                }
    … …  
    7778                $theme = $this->get_object( $slug );
    7879                if ( ! $theme ) {
     80                        status_header( 404 );
    7981                        return;
    8082                } else {
Note: See TracChangeset for help on using the changeset viewer.