Ticket #32246: class-wp-widget.php.patch
File class-wp-widget.php.patch, 3.0 KB (added by , 9 years ago) |
---|
-
wp-includes/class-wp-widget.php
162 162 /** 163 163 * PHP4 constructor. 164 164 * 165 * @param string $id_base 166 * @param string $name 167 * @param array $widget_options 168 * @param array $control_options 165 * @access public 166 * 167 * @param string $id_base Optional Base ID for the widget, lowercase and unique. If left empty, 168 * a portion of the widget's class name will be used Has to be unique. 169 * @param string $name Name for the widget displayed on the configuration page. 170 * @param array $widget_options Optional. Widget options. See wp_register_sidebar_widget() for information 171 * on accepted arguments. Default empty array. 172 * @param array $control_options Optional. Widget control options. See wp_register_widget_control() for 173 * information on accepted arguments. Default empty array. 169 174 */ 170 175 public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) { 171 176 _deprecated_constructor( 'WP_Widget', '4.3.0', get_class( $this ) ); … … 179 184 * 180 185 * @since 2.8.0 181 186 * @since 4.4.0 Array format field names are now accepted. 187 * @access public 182 188 * 183 189 * @param string $field_name Field name 184 190 * @return string Name attribute for $field_name … … 244 250 * Set the internal order number for the widget instance. 245 251 * 246 252 * @since 2.8.0 247 * @access p rivate253 * @access public 248 254 * 249 255 * @param int $number The unique order number of this widget instance compared to other 250 256 * instances of the same class. … … 258 264 * Retrieves the widget display callback. 259 265 * 260 266 * @since 2.8.0 267 * @access public 261 268 * 262 269 * @return callable Display callback. 263 270 */ … … 269 276 * Retrieves the widget update callback. 270 277 * 271 278 * @since 2.8.0 279 * @access public 272 280 * 273 281 * @return callable Update callback. 274 282 */ … … 280 288 * Retrieves the form callback. 281 289 * 282 290 * @since 2.8.0 291 * @access public 283 292 * 284 293 * @return callable Form callback. 285 294 */ … … 457 466 * @since 2.8.0 458 467 * @access public 459 468 * 460 * @param int|array $widget_args Widget instance number or array of widget arguments. 469 * @param int|array $widget_args { 470 * Optional. Internal order number of the widget instance, or array of multi-widget arguments. 471 * Default 1. 472 * 473 * @type int $number Number increment used for multiples of the same widget. 474 * } 461 475 * @return string|null 462 476 */ 463 477 public function form_callback( $widget_args = 1 ) { … … 517 531 * Register an instance of the widget class. 518 532 * 519 533 * @since 2.8.0 520 * @access p rivate534 * @access public 521 535 * 522 536 * @param integer $number Optional. The unique order number of this widget instance 523 537 * compared to other instances of the same class. Default -1.