#9155 closed defect (bug) (invalid)
wp-includes/update.php drunken looking add_action()s
| Reported by: | jidanni | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | Upgrade/Install | Version: | 2.7 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
Description
Odd looking code in wp-includes/update.php:
#files, and non existent too?! add_action( 'load-plugins.php', 'wp_update_plugins' ); add_action( 'load-update.php', 'wp_update_plugins' ); #add_action(A,A); means what? add_action( 'wp_update_plugins', 'wp_update_plugins' ); add_action( 'wp_update_themes', 'wp_update_themes' );
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
WordPress hooks and filters may have any name.
WordPress has a hook that runs on every page, "load-(admin page name)"
The fact a hook exists with the same name as the function doesnt matter either, the same happens in a few other locations too.
In the latter, Its mearly, hook the function wp_update_plugins' to the 'wp_update_plugins' hook (Which is called by wp-cron amongst others)