Skip to content

Commit

Permalink
Issue #839: wp-cli script to add test widgets to sidebar.
Browse files Browse the repository at this point in the history
Adds an instance of every default WordPress widget
to the first registered sidebar.
First, it checks if a widget with the same settings exists in the sidebar.
Then, it conditionally creates the widget.
And adds all of them to the sidebar.
Mainly copies amp_get_widget_id() from import_theme_starter_content().
Props @westonruter.
  • Loading branch information
Ryan Kienstra committed Jan 13, 2018
1 parent d48e15b commit ead65a6
Showing 1 changed file with 417 additions and 31 deletions.
Loading

0 comments on commit ead65a6

Please sign in to comment.