[wp-trac] [WordPress Trac] #44689: Convert user sites (my-sites.php) to table

WordPress Trac noreply at wordpress.org
Fri Aug 10 01:10:48 UTC 2018


#44689: Convert user sites (my-sites.php) to table
--------------------------------+----------------------------------------
 Reporter:  eArtboard           |       Owner:  (none)
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  administration, multisite
--------------------------------+----------------------------------------

Comment (by shariqkhan2012):

 Initially, I planned to add 'Set as Primary Site' as a row action to
 replace the current implementation as a dropdown. However, halfway through
 the code, I realized there is a do_action hook
 ('myblogs_allblogs_options') over there, and plugins **may** be using that
 hook to do execute various codes including displaying other content, which
 may not go well if it is added to action row.

 So I have not put that code in place as of now. Need feedback on it.

 Additionally, I also planned to add 'Delete' as a row action for the sites
 for which the user has the capabilities to delete. Currently, when a user
 tries to delete a site from Tools->Delete this site, they are taken to
 another screen which asks for confirmation and then sends a mail with a
 hashed URL.

 Again, I refrained from implementing that because I was not sure how the
 user-flow should look like as adding the 'Delete' option in the row action
 would mean that, depending on their access permissions, users would be
 able to delete not only the site whose dashboard they are on at the moment
 but also their other sites.
 Feedback welcome.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44689#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list