From d7d48f63722210ef1faef6df4eb98112465c42ad Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Sat, 3 Dec 2016 03:50:02 +0000 Subject: [PATCH] Load: Re-add `session.php`. `session.php` is occasionally included directly by custom external code, so should continue to be available. This behaviour is deprecated. Partial revert of [38373]. See #36335, #39027. git-svn-id: https://develop.svn.wordpress.org/trunk@39453 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update-core.php | 2 +- src/wp-includes/session.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/wp-includes/session.php diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 7e1fc3f114..b8bb0c1195 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -709,7 +709,7 @@ $_old_files = array( // Don't delete, yet: 'wp-admin/includes/class-wp-upgrader-skins.php', // Don't delete, yet: 'wp-includes/class-feed.php', 'wp-includes/locale.php', -'wp-includes/session.php', +// Don't delete, yet: 'wp-includes/session.php', 'wp-includes/customize/class-wp-customize-themes-panel.php', // Removed in beta; when the feature comes back remember to remove it from this array. See #37661. ); diff --git a/src/wp-includes/session.php b/src/wp-includes/session.php new file mode 100644 index 0000000000..d9175c9895 --- /dev/null +++ b/src/wp-includes/session.php @@ -0,0 +1,11 @@ +