Ticket #28216: 28216.update-api-function-docs.patch
File 28216.update-api-function-docs.patch, 1.3 KB (added by , 9 years ago) |
---|
-
src/wp-includes/widgets.php
687 687 'wp_widget_recent_comments_control' 688 688 ); 689 689 690 /* Template tags & API functions */691 692 690 /** 693 691 * Register a widget 694 692 * … … 700 698 * 701 699 * @global WP_Widget_Factory $wp_widget_factory 702 700 * 703 * @param string $widget _class The name of a class that extendsWP_Widget701 * @param string $widgetish The name of a class that extends WP_Widget or an instance of WP_Widget 704 702 */ 705 function register_widget($widget _class) {703 function register_widget($widgetish) { 706 704 global $wp_widget_factory; 707 705 708 $wp_widget_factory->register($widget _class);706 $wp_widget_factory->register($widgetish); 709 707 } 710 708 711 709 /** … … 720 718 * 721 719 * @global WP_Widget_Factory $wp_widget_factory 722 720 * 723 * @param string $widget _class The name of a class that extendsWP_Widget721 * @param string $widgetish The name of a class that extends WP_Widget or an instance of WP_Widget 724 722 */ 725 function unregister_widget($widget _class) {723 function unregister_widget($widgetish) { 726 724 global $wp_widget_factory; 727 725 728 $wp_widget_factory->unregister($widget _class);726 $wp_widget_factory->unregister($widgetish); 729 727 } 730 728 731 729 /**