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
This commit is contained in:
Gary Pendergast 2016-12-03 03:50:02 +00:00
parent af97f9d16b
commit d7d48f6372
2 changed files with 12 additions and 1 deletions

View File

@ -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.
);

View File

@ -0,0 +1,11 @@
<?php
/**
* Session API
*
* @since 4.0.0
*/
_deprecated_file( basename( __FILE__ ), '4.7.0' );
require_once( ABSPATH . WPINC . '/class-wp-session-tokens.php' );
require_once( ABSPATH . WPINC . '/class-wp-user-meta-session-tokens.php' );