Skip to content

Commit

Permalink
Merge branch 'playground-ready' into main
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Sirota <[email protected]>
  • Loading branch information
asirota authored Nov 5, 2024
2 parents a2f31b0 + 594ef76 commit 25fccad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion includes/class-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public function __construct() {
Admin_Settings::get_instance();
Plugins_Screens::get_instance();
Themes_Screens::get_instance();

$this->api_rewrite();

add_action( 'init', array( $this, 'load_textdomain' ) );
Expand Down
2 changes: 2 additions & 0 deletions includes/class-themes-screens.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ public function admin_enqueue_scripts( $hook ) {
* @return void
*/
public function redirect_to_theme_install() {

$nonce = isset( $_REQUEST['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wpnonce'] ) ) : false;
if ( $nonce && ! wp_verify_nonce( $nonce, 'query-themes' ) ) {
return;
}

$browse = isset( $_GET['browse'] ) ? sanitize_text_field( wp_unslash( $_GET['browse'] ) ) : '';

if ( ! in_array( $browse, $this->unsupported_filters, true ) ) {
return;
}
Expand Down

0 comments on commit 25fccad

Please sign in to comment.