Making WordPress.org


Ignore:
Timestamp:
02/21/2023 05:48:06 AM (3 years ago)
Author:
dd32
Message:

Support Forums: Setup the Directory_Compat classes in the context of the topic when processing email subscriptions for pending/delayed topics.

See #6786.

File:
1 edited

Legend:

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

    r10819 r12410  
    9191                }
    9292
     93                if ( ! $this->for_slug( $slug ) ) {
     94                        status_header( 404 );
     95                }
     96        }
     97
     98        /**
     99         * Set the directory instance to the slugs data.
     100         *
     101         * @param string $slug The theme slug.
     102         */
     103        public function for_slug( $slug ) {
    93104                $theme = $this->get_object( $slug );
    94105                if ( ! $theme ) {
    95                         status_header( 404 );
    96                         return;
     106                        return false;
    97107                }
    98108
Note: See TracChangeset for help on using the changeset viewer.