Multi-widget pattern documentation typo fixes from Jaymin Patel. fixes #6866
git-svn-id: https://develop.svn.wordpress.org/trunk@7849 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d94ce464a3
commit
b2a796245a
|
@ -1496,7 +1496,7 @@ function widget_many_control( $widget_args = 1 ) {
|
||||||
$options[$widget_number] = array( 'something' => $something ); // Even simple widgets should store stuff in array, rather than in scalar
|
$options[$widget_number] = array( 'something' => $something ); // Even simple widgets should store stuff in array, rather than in scalar
|
||||||
}
|
}
|
||||||
|
|
||||||
update_option('widget_text', $options);
|
update_option('widget_many', $options);
|
||||||
|
|
||||||
$updated = true; // So that we don't go through this more than once
|
$updated = true; // So that we don't go through this more than once
|
||||||
}
|
}
|
||||||
|
@ -1538,8 +1538,8 @@ function widget_many_register() {
|
||||||
// $id should look like {$id_base}-{$o}
|
// $id should look like {$id_base}-{$o}
|
||||||
$id = "many-$o"; // Never never never translate an id
|
$id = "many-$o"; // Never never never translate an id
|
||||||
$registered = true;
|
$registered = true;
|
||||||
wp_register_sidebar_widget( $id, $name, 'wp_widget_text', $widget_ops, array( 'number' => $o ) );
|
wp_register_sidebar_widget( $id, $name, 'widget_many', $widget_ops, array( 'number' => $o ) );
|
||||||
wp_register_widget_control( $id, $name, 'wp_widget_text_control', $control_ops, array( 'number' => $o ) );
|
wp_register_widget_control( $id, $name, 'widget_many_control', $control_ops, array( 'number' => $o ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are none, we register the widget's existance with a generic template
|
// If there are none, we register the widget's existance with a generic template
|
||||||
|
|
Loading…
Reference in New Issue