Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 039b7de

Browse filesBrowse files
committed
Plugin activation attempt goes through a function to show the same errors as the test. props miqrogroove. fixes #12089
git-svn-id: https://develop.svn.wordpress.org/trunk@13452 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 92c03dc commit 039b7de
Copy full SHA for 039b7de

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎wp-admin/plugins.php‎

Copy file name to clipboardExpand all lines: wp-admin/plugins.php
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@
155155
}
156156

157157
@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
158-
include(WP_PLUGIN_DIR . '/' . $plugin);
158+
// Go back to "sandbox" scope so we get the same errors as before
159+
function plugin_sandbox_scrape( $plugin ) {
160+
include( WP_PLUGIN_DIR . '/' . $plugin );
161+
}
162+
plugin_sandbox_scrape( $plugin );
159163
do_action('activate_' . $plugin);
160164
exit;
161165
break;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.