Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 6 months ago

#1457 closed enhancement (invalid)

Add link to markdown syntax on post.php

Reported by: chrisdolan's profile 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)

markdown_link.patch (1.1 KB) - added by chrisdolan 19 years ago.
corrected patch

Download all attachments as: .zip

Change History (5)

@chrisdolan
19 years ago

corrected patch

#1 @chrisdolan
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 @markjaquith
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.

#3 @masquerade
19 years ago

It should also be noted that the posting interface can be modified by a plugin, so this really isn't the place for it. File up a report with the author of the Markdown plugin.

#4 @masquerade
19 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.