#1457 closed enhancement (invalid)
Add link to markdown syntax on post.php
Reported by: | chrisdolan | Owned by: | |
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | normal | Version: | 1.5.1.2 |
Component: | Administration | Keywords: | markdown |
Focuses: | Cc: |
Description
The patch below adds a "Markdown Syntax" link on the Write page if the Markdown plugin is active. The patch is against the Wordpress 1.5.1.2 svn tag.
--- wp-admin/menu.php (revision 2657) +++ wp-admin/menu.php (working copy) @@ -18,6 +18,9 @@ $submenu['post.php'][5] = array(__('Write Post'), 1, 'post.php'); $submenu['post.php'][10] = array(__('Write Page'), 5, 'page-new.php'); +if (isset($MarkdownPHPVersion)) { + $submenu['post.php'][15] = array(__('Markdown Syntax'), 1, http://daringfireball.net/projects/markdown/syntax'); +} $submenu['edit.php'][5] = array(__('Posts'), 1, 'edit.php'); $submenu['edit.php'][10] = array(__('Pages'), 5, 'edit-pages.php');
Attachments (1)
Change History (5)
#1
@
19 years ago
Oops, please ignore the patch in the first comment and consider the attached one. The pasted one omitted a necessary related patch to allow absolute URLs in the admin menus.
-- Chris
#2
@
19 years ago
This is really code specifically for Markdown (which isn't even included in the default WP package anymore). It would be better to have a more general solution. Best option would to have the code in the Markdown plugin itself.
Note: See
TracTickets for help on using
tickets.
corrected patch