Changeset 54996
- Timestamp:
- 12/15/2022 11:01:34 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r54364 r54996 245 245 * 246 246 * @param string $feedname Feed name. 247 * @param callable $ functionCallback to run on feed display.247 * @param callable $callback Callback to run on feed display. 248 248 * @return string Feed action name. 249 249 */ 250 function add_feed( $feedname, $ function) {250 function add_feed( $feedname, $callback ) { 251 251 global $wp_rewrite; 252 252 … … 260 260 remove_action( $hook, $hook ); 261 261 262 add_action( $hook, $ function, 10, 2 );262 add_action( $hook, $callback, 10, 2 ); 263 263 264 264 return $hook;
Note: See TracChangeset
for help on using the changeset viewer.