Changes in trunk/wp-includes/plugin.php [14924:16955]
- File:
-
- 1 edited
-
trunk/wp-includes/plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r14924 r16955 657 657 * 658 658 * @param string $file 659 * @param callback $callback The callback to run when the hook is called. 660 */ 661 function register_uninstall_hook($file, $callback) { 659 * @param callback $callback The callback to run when the hook is called. Must be a static method or function. 660 */ 661 function register_uninstall_hook( $file, $callback ) { 662 if ( is_array( $callback ) && is_object( $callback[0] ) ) { 663 _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1' ); 664 return; 665 } 666 662 667 // The option should not be autoloaded, because it is not needed in most 663 668 // cases. Emphasis should be put on using the 'uninstall.php' way of … … 728 733 * @param callback $function Used for creating unique id 729 734 * @param int|bool $priority Used in counting how many hooks were applied. If === false and $function is an object reference, we return the unique id only if it already has one, false otherwise. 730 * @param string $type filter or action731 735 * @return string|bool Unique ID for usage as array key or false if $priority === false and $function is an object reference, and it does not already have a uniqe id. 732 736 */
Note: See TracChangeset
for help on using the changeset viewer.