#9439 closed enhancement (invalid)
Cannot enter unfiltered HTML/PHP code
Reported by: | johngoold | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | blocker | Version: | 2.7.1 |
Component: | General | Keywords: | editor html php page url config |
Focuses: | Cc: |
Description
To use WordPress to create a web site, rather than just a blog, a user (possibly restricted to the administrator)needs to be able to create PAGEs. To create anything decent requires using HTML and PHP.
Logging in as "admin", with the WYSIWYG editor turned off means the HTML editor is invoked when one edits a page (or post, or...).
I find it beyond belief that the code I enter is NOT saved EXACTLY as I enter it. Inserting paragraph tags and break tags is inexcusable. I can work around some of the problem by mucking up my code (by running it all together).
At a minimum, the administrator should be able to create pages, posts, etc., without any constraints -- just like he can create template files.
Messing up the PHP means that, for example, it becomes very difficult to create anchor and image tags that use the wp-config.php settins rather than hard coding the URLs.
Change History (3)
#1
@
15 years ago
- Milestone Unassigned deleted
- Resolution set to invalid
- Status changed from new to closed
- Type changed from defect (bug) to enhancement
#2
follow-up:
↓ 3
@
15 years ago
He's not entirely wrong, if I may add a comment. wpautop is also implemented as js in TinyMCE, and best I'm aware there are no plugins to disable that one.
D.
#3
in reply to:
↑ 2
@
15 years ago
Replying to Denis-de-Bernardy:
He's not entirely wrong, if I may add a comment. wpautop is also implemented as js in TinyMCE, and best I'm aware there are no plugins to disable that one.
As mentioned in the ticket, he has TinyMCE disabled. And TinyMCE is designed to format your posts for you, so it's to be expected that it adds HTML of it's own. ;)
There are plenty of plugins out there that will remove the
wpautop
filter from your posts. Then you can line break as you please.The HTML editor is not intended to make your posts show up as you write them, it's merely there to allow you to type/see HTML. The vast majority of people don't want to have to type
<br />
when they want a line break when using the HTML editor (me included)And you're mistaken -- administrators do have the
unfiltered_html
capability and can use literally any HTML tag they wish.