Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Taxonomy Dropdown Widget
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Taxonomy Dropdown Widget
Commits
31983ec6
Commit
31983ec6
authored
11 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Add _deprecated_function notices to appropriate functions
parent
8c9d1fcc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tag-dropdown-widget.php
+10
-1
10 additions, 1 deletion
tag-dropdown-widget.php
with
10 additions
and
1 deletion
tag-dropdown-widget.php
+
10
−
1
View file @
31983ec6
...
@@ -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
)
);
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment