Opened 13 years ago
Closed 13 years ago
#8742 closed defect (bug) (fixed)
Multi-Widget Example Missing Semicolon
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | lowest |
Severity: | trivial | Version: | 2.7 |
Component: | Plugins | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Within wp-includes/widgets.php is an example of a multi-widget, the following code currently creates an error:
http://trac.wordpress.org/browser/trunk/wp-includes/widgets.php#L2095
Line 2095: add_action( 'widgets_init', 'widget_many_register' )
This line should have a semicolon at the end, becoming
add_action( 'widgets_init', 'widget_many_register' );
Attachments (1)
Change History (6)
#2
@
13 years ago
- Keywords commit added
WTF, the code is in a comment and most like was intentional to ensure that the developer who is copying and pasting is paying attention.
Note: See
TracTickets for help on using
tickets.
widgets.php