Changeset 60809 for trunk/src/wp-includes/class-wp-hook.php
- Timestamp:
- 09/29/2025 04:28:00 PM (11 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-hook.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-hook.php
r56609 r60809 81 81 */ 82 82 public function add_filter( $hook_name, $callback, $priority, $accepted_args ) { 83 if ( null === $priority ) { 84 $priority = 0; 85 } 86 83 87 $idx = _wp_filter_build_unique_id( $hook_name, $callback, $priority ); 84 88 … … 188 192 */ 189 193 public function remove_filter( $hook_name, $callback, $priority ) { 194 if ( null === $priority ) { 195 $priority = 0; 196 } 197 190 198 $function_key = _wp_filter_build_unique_id( $hook_name, $callback, $priority ); 191 199 192 $exists = isset( $ this->callbacks[ $priority ][ $function_key ] );200 $exists = isset( $function_key, $this->callbacks[ $priority ][ $function_key ] ); 193 201 194 202 if ( $exists ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)