Skip to content
Snippets Groups Projects
Commit 31983ec6 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add _deprecated_function notices to appropriate functions

parent 8c9d1fcc
Branches
Tags
No related merge requests found
...@@ -567,10 +567,13 @@ if ( !function_exists( 'generateTagDropdown' ) ): ...@@ -567,10 +567,13 @@ if ( !function_exists( 'generateTagDropdown' ) ):
/** /**
* Build tag dropdown based on provided arguments * Build tag dropdown based on provided arguments
* @since 1.7 * @since 1.7
* @uses _deprecated_function
* @uses taxonomy_dropdown_widget_plugin::get_instance * @uses taxonomy_dropdown_widget_plugin::get_instance
* @return string or false * @return string or false
*/ */
function generateTagDropdown( $args ) { function generateTagDropdown( $args ) {
_deprecated_function( 'generateTagDropdown', '2.0 of Taxonomy (Tag) Dropdown Widget', 'taxonomy_dropdown_widget' );
// Sanitize options // Sanitize options
$options = taxonomy_dropdown_widget_plugin::get_instance()->sanitize_options( $args ); $options = taxonomy_dropdown_widget_plugin::get_instance()->sanitize_options( $args );
...@@ -582,10 +585,13 @@ if ( !function_exists( 'TDW_direct' ) ): ...@@ -582,10 +585,13 @@ if ( !function_exists( 'TDW_direct' ) ):
/** /**
* Build tag dropdown based on provided arguments * Build tag dropdown based on provided arguments
* @since 1.6 * @since 1.6
* @uses _deprecated_function
* @uses taxonomy_dropdown_widget_plugin::get_instance * @uses taxonomy_dropdown_widget_plugin::get_instance
* @return string or false * @return string or false
*/ */
function TDW_direct( $limit = false, $count = false, $exclude = false ) { function TDW_direct( $limit = false, $count = false, $exclude = false ) {
_deprecated_function( 'TDW_direct', '1.7 of Taxonomy (Tag) Dropdown Widget', 'taxonomy_dropdown_widget' );
// Build options array from function parameters // Build options array from function parameters
$options = array( $options = array(
'max_name_length' => $limit, 'max_name_length' => $limit,
...@@ -608,11 +614,14 @@ if ( !function_exists( 'makeTagDropdown' ) ): ...@@ -608,11 +614,14 @@ if ( !function_exists( 'makeTagDropdown' ) ):
/** /**
* Build tag dropdown based on provided arguments * Build tag dropdown based on provided arguments
* @since 1.3 * @since 1.3
* @uses _deprecated_function
* @uses taxonomy_dropdown_widget_plugin::get_instance * @uses taxonomy_dropdown_widget_plugin::get_instance
* @return string or false * @return string or false
*/ */
function makeTagDropdown( $limit = false ) { function makeTagDropdown( $limit = false ) {
//Sanitize options _deprecated_function( 'makeTagDropdown', '1.6 of Taxonomy (Tag) Dropdown Widget', 'taxonomy_dropdown_widget' );
// Sanitize options
$options = array( $options = array(
'max_name_length' => intval( $limit ) 'max_name_length' => intval( $limit )
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment