[wp-trac] [WordPress Trac] #58610: Allow Custom CSS to Site Admins in Multisite

WordPress Trac noreply at wordpress.org
Fri Aug 23 18:43:30 UTC 2024


#58610: Allow Custom CSS to Site Admins in Multisite
-------------------------+-------------------------------------------------
 Reporter:  anrghg       |       Owner:  (none)
     Type:  feature      |      Status:  new
  request                |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:
 Severity:  major        |  Resolution:
 Keywords:               |     Focuses:  ui, css, administration, multisite
-------------------------+-------------------------------------------------

Comment (by picslab):

 If valid I can provide a patch
 {{{
   $sendback = admin_url( 'edit.php' );
 if ( 'post' != $post->post_type && ( $post_type_object =
 get_post_type_object( $post->post_type ) ) ) {
 $sendback .= '?post_type=' . $post->post_type;
 $sendback_text = sprintf( _x('Go to All %s', 'post type general name:
 Posts, Pages, etc.'), $post_type_object->labels->name );
 } else {
 $sendback_text = __('Go to All Posts');
 }
 if ( 'post' != $post->post_type )
 $sendback = add_query_arg( 'post_type', $post->post_type, $sendback );
 $sendback_text = get_post_type_object( $post->post_type
 )->labels->all_items;
 }
 }}}

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


More information about the wp-trac mailing list