mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Plugins: In _wp_filter_build_unique_id(), remove $wp_filter global and $filter_id_count static variable, unused since [46220].
See #47407, #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46805 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -902,19 +902,13 @@ function _wp_call_all_hook( $args ) {
|
||||
* and the function always returns a string.
|
||||
* @access private
|
||||
*
|
||||
* @global array $wp_filter Stores all of the filters and actions.
|
||||
* @staticvar int $filter_id_count
|
||||
*
|
||||
* @param string $tag Unused. The name of the filter to build ID for.
|
||||
* @param callable $function The function to generate ID for.
|
||||
* @param int $priority Unused. The order in which the functions associated
|
||||
* with a particular action are executed.
|
||||
* @return string Unique ID for usage as array key.
|
||||
* @param int $priority Unused. The order in which the functions
|
||||
* associated with a particular action are executed.
|
||||
* @return string Unique function ID for usage as array key.
|
||||
*/
|
||||
function _wp_filter_build_unique_id( $tag, $function, $priority ) {
|
||||
global $wp_filter;
|
||||
static $filter_id_count = 0;
|
||||
|
||||
if ( is_string( $function ) ) {
|
||||
return $function;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user