From c20fbf6e4369493342632d99540b0789f46275ec Mon Sep 17 00:00:00 2001 From: ozh Date: Thu, 7 May 2015 21:50:59 +0200 Subject: [PATCH] Deprecate function It's a leftover from the era when we were loading includes/ files conditionally --- includes/functions-deprecated.php | 11 ++++++++++- includes/functions.php | 10 ---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/includes/functions-deprecated.php b/includes/functions-deprecated.php index 992aa14..a5e8429 100644 --- a/includes/functions-deprecated.php +++ b/includes/functions-deprecated.php @@ -65,4 +65,13 @@ function yourls_apply_filters( $hook, $value = '' ) { return yourls_apply_filter( $hook, $value ); } - +/** + * Check if we'll need interface display function (ie not API or redirection) + * + */ +function yourls_has_interface() { + yourls_deprecated_function( __FUNCTION__, '1.7.1' ); + if( yourls_is_API() or yourls_is_GO() ) + return false; + return true; +} diff --git a/includes/functions.php b/includes/functions.php index b5db776..95e260c 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1674,16 +1674,6 @@ function yourls_statlink( $keyword = '' ) { return yourls_apply_filter( 'yourls_statlink', $link, $keyword ); } -/** - * Check if we'll need interface display function (ie not API or redirection) - * - */ -function yourls_has_interface() { - if( yourls_is_API() or yourls_is_GO() ) - return false; - return true; -} - /** * Check if we're in API mode. Returns bool * -- 2.45.0