WordPress.org

Making WordPress.org

Opened 4 years ago

Last modified 2 years ago

#1110 assigned enhancement

Site Cloner: Add support for importing widgets

Reported by: iandunn Owned by:
Milestone: Priority: normal
Component: WordCamp Site & Plugins Keywords: needs-patch good-first-bug
Cc:

Description

Currently the Site Cloner only imports the theme and custom CSS, but that's not enough to make the user's site match the source site.

We should also copy over widgets.

Attachments (1)

1110.diff (1.8 KB) - added by satwant5 4 years ago.
IMport widgets functionality added

Download all attachments as: .zip

Change History (11)

#1 @iandunn
4 years ago

  • Keywords good-first-bug added

#2 @iandunn
4 years ago

  • Owner set to iandunn
  • Status changed from new to accepted

This ticket was mentioned in Slack in #outreach by satwant5. View the logs.


4 years ago

This ticket was mentioned in Slack in #outreach by jayantic. View the logs.


4 years ago

#5 @satwant5
4 years ago

  • Keywords changed from needs-patch, good-first-bug to needs-patch good-first-bug


I am working on this issue . How do I assign it to myself ?

#6 @iandunn
4 years ago

Typically, if multiple people want to work on the same ticket, they will collaborate and build off each other's patches. For Outreachy applicants, though, we'll need to evaluate each contribution independently, so we want people to claim tickets.

Leaving a comment here is good enough to indicate that you're working on it.

@satwant5
4 years ago

IMport widgets functionality added

This ticket was mentioned in Slack in #outreach by satwant5. View the logs.


4 years ago

#8 @iandunn
4 years ago

@satwant5, were you able to see it working in your development environment? When I apply the patch and try to clone a site, I don't see the widgets appear during the live preview process, and then if I try to clone a site I get a fatal error:

[18-Mar-2016 18:32:45 UTC] PHP Fatal error:  Call to undefined function WordCamp\Site_Cloner\update_css() in /srv/www/wordcamp.dev/public_html/wp-content/plugins/wordcamp-site-cloner/includes/source-site-id-setting.php on line 150
[18-Mar-2016 18:32:45 UTC] PHP Stack trace:
[18-Mar-2016 18:32:45 UTC] PHP   1. {main}() /srv/www/wordcamp.dev/public_html/wordpress/wp-admin/admin-ajax.php:0
[18-Mar-2016 18:32:45 UTC] PHP   2. do_action() /srv/www/wordcamp.dev/public_html/wordpress/wp-admin/admin-ajax.php:89
[18-Mar-2016 18:32:45 UTC] PHP   3. call_user_func_array:{/srv/www/wordcamp.dev/public_html/wordpress/wp-includes/plugin.php:525}() /srv/www/wordcamp.dev/public_html/wordpress/wp-includes/plugin.php:525
[18-Mar-2016 18:32:45 UTC] PHP   4. WP_Customize_Manager->save() /srv/www/wordcamp.dev/public_html/wordpress/wp-includes/plugin.php:525
[18-Mar-2016 18:32:45 UTC] PHP   5. WP_Customize_Setting->save() /srv/www/wordcamp.dev/public_html/wordpress/wp-includes/class-wp-customize-manager.php:1010
[18-Mar-2016 18:32:45 UTC] PHP   6. WordCamp\Site_Cloner\Source_Site_ID_Setting->update() /srv/www/wordcamp.dev/public_html/wordpress/wp-includes/class-wp-customize-setting.php:475

Even if I fix the error, it doesn't look like the widgets exist on the site after the cloning process finishes.

This ticket was mentioned in Slack in #outreach by satwant5. View the logs.


4 years ago

#10 @iandunn
2 years ago

  • Owner iandunn deleted
  • Status changed from accepted to assigned
Note: See TracTickets for help on using tickets.