Skip to content

Commit

Permalink
Get die() ouf of yourls_plugin_admin_page()
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
ozh committed May 11, 2015
1 parent faabf0e commit f3bc0bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions includes/functions-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,6 @@ function yourls_plugin_admin_page( $plugin_page ) {
call_user_func( $ydb->plugin_pages[$plugin_page]['function'] );

yourls_html_footer();

die();
}


Expand Down

0 comments on commit f3bc0bd

Please sign in to comment.