Changeset 16339
- Timestamp:
- 11/13/2010 09:45:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/plugin.php
r15829 r16339 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 _deprecated_argument( __FUNCTION__, '3.1', __( 'Only a static class method or function can be used in an uninstall hook.' ) ); 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
Note: See TracChangeset
for help on using the changeset viewer.