From 5f07ebb27505d499c99bdc45fe489c6181a50587 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 24 Dec 2009 10:48:32 +0000 Subject: [PATCH] Fix phpDoc for _deprecated_file(). Always pass the full path from ABSPATH to _deprecated_file(). git-svn-id: https://develop.svn.wordpress.org/trunk@12534 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- wp-includes/registration-functions.php | 2 +- wp-includes/rss-functions.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c4a481bef8..81e83043ab 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2994,7 +2994,7 @@ function _deprecated_function($function, $version, $replacement=null) { * * @param string $file The file that was included * @param string $version The version of WordPress that deprecated the function - * @param string $replacement Optional. The function that should have been called + * @param string $replacement Optional. The file that should have been included based on ABSPATH */ function _deprecated_file($file, $version, $replacement=null) { diff --git a/wp-includes/registration-functions.php b/wp-includes/registration-functions.php index a1d5ab54f2..c606c7c7ba 100644 --- a/wp-includes/registration-functions.php +++ b/wp-includes/registration-functions.php @@ -4,6 +4,6 @@ * * @package WordPress */ -_deprecated_file( basename(__FILE__), '0.0', 'registration.php' ); +_deprecated_file( basename(__FILE__), '0.0', WPINC . '/registration.php' ); require_once(ABSPATH . WPINC . '/registration.php'); ?> diff --git a/wp-includes/rss-functions.php b/wp-includes/rss-functions.php index 3ccd75a956..fe0f3632f2 100644 --- a/wp-includes/rss-functions.php +++ b/wp-includes/rss-functions.php @@ -5,6 +5,6 @@ * @package WordPress */ -_deprecated_file( basename(__FILE__), '0.0', 'rss.php' ); +_deprecated_file( basename(__FILE__), '0.0', WPINC . '/rss.php' ); require_once (ABSPATH . WPINC . '/rss.php'); ?>