From f3bc0bd33640bfd1fed92aacfb6dac3b20d375f8 Mon Sep 17 00:00:00 2001 From: ozh Date: Mon, 11 May 2015 10:28:17 +0200 Subject: [PATCH] Get die() ouf of yourls_plugin_admin_page() This will make testing this function a lot easier, and it makes more sense to die after the function call, not within it. [skip ci] --- admin/plugins.php | 1 + includes/functions-plugins.php | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/plugins.php b/admin/plugins.php index 4a3594a..bc2ffff 100644 --- a/admin/plugins.php +++ b/admin/plugins.php @@ -6,6 +6,7 @@ // Handle plugin administration pages if( isset( $_GET['page'] ) && !empty( $_GET['page'] ) ) { yourls_plugin_admin_page( $_GET['page'] ); + die(); } // Handle activation/deactivation of plugins diff --git a/includes/functions-plugins.php b/includes/functions-plugins.php index 0cabd85..1bcafcb 100644 --- a/includes/functions-plugins.php +++ b/includes/functions-plugins.php @@ -555,8 +555,6 @@ function yourls_plugin_admin_page( $plugin_page ) { call_user_func( $ydb->plugin_pages[$plugin_page]['function'] ); yourls_html_footer(); - - die(); } -- 2.45.0