[wp-trac] [WordPress Trac] #35877: Advanced List Styles Not Saving Visual Ain WordPress Multisite for Non-SuperAdmins

WordPress Trac noreply at wordpress.org
Fri Feb 19 20:13:42 UTC 2016


#35877: Advanced List Styles Not Saving Visual Ain WordPress Multisite for Non-
SuperAdmins
---------------------------------------+-----------------------------
 Reporter:  joenasagrc                 |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  TinyMCE                    |    Version:  4.4.2
 Severity:  normal                     |   Keywords:
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 '''Referencing WordPress Forums''': Advanced List Styles Not Saving in
 WordPress Multisite for Role Administrator (or Below)
 [https://wordpress.org/support/topic/advanced-list-styles-not-saving-in-
 wordpress-multisite-for-role-administrator]

 '''Proposed Solution:''' Add the list type styles to the allowed list in
 wp-includes/kses.php.

 ----
 '''To reproduce:'''

 Instance of WordPress Multisite, TinyMCE Advanced activated and configured
 with "List Style Options" activated, Default 2014 Theme activated.

 Logged in as user with role Administrator or below.

 Create ordered list, apply advanced any advanced list style, e.g., Lower
 Alpha, confirming HTML is


 {{{
 <ol style="list-style-type: lower-alpha;">
 }}}


 Update page, checking HTML: inline style stripped, confirming HTML is now
 only:


 {{{
 <ol>
 }}}


 For comparison: Reapplied list styles, then added other inline styles such
 as text color and background. Example:


 {{{
 <p style="border: 1px solid red;padding: 10px">Custom inline style on a
 paragraph?</p>
 }}}

 {{{
 <ol style="list-style-type: lower-alpha;">
 }}}


 Result after save: the inline styles remain. List styles are stripped.

 {{{
 <p style="border: 1px solid red;padding: 10px">Custom inline style on a
 paragraph?</p>
 }}}

 {{{
 <ol>
 }}}

 Logged in as SuperAdmin: list inline styles remain after save.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35877>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list