[wp-trac] [WordPress Trac] #24077: Anchor links unallowed for non-admins

WordPress Trac noreply at wordpress.org
Fri Apr 26 07:12:09 UTC 2013


#24077: Anchor links unallowed for non-admins
--------------------------+------------------------------
 Reporter:  artychan      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.5.1
 Severity:  minor         |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  Validation => TinyMCE


Comment:

 Thanks for the clarification.

 As far as I can see, the problem is that `<a id="test"></a>` gets replaced
 with ` ` when switching from Text to Visual editor tab. This happens
 for all user roles, including Administrator. I can also reproduce this on
 TinyMCE demo page: http://www.tinymce.com/tryit/basic.php.

 If I save the post without switching to Visual editor, the anchor is
 preserved, even if I'm logged in as Author.

 Do you get the same results?

 As for the kses filter, the `id` attribute is allowed for `<a>` tag since
 [6617] (!WordPress 2.5) and for `<h1>`...`<h6>` tags since [11692]
 (!WordPress 2.8.1).

 Since [21790], the standard attributes (`class`, `id`, `style`, and
 `title`) are allowed for all tags.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24077#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list