Make WordPress Core


Ignore:
Timestamp:
11/24/2014 06:14:03 AM (11 years ago)
Author:
DrewAPicture
Message:

Ensure inline code is markdown-escaped as such, HTML tags are removed from summaries, and that code snippets in descriptions are properly indented.

Affects DocBlocks for the following core elements:

  • Backtick-escape HTML tags in several argument descriptions for wp_link_pages()
  • Remove an HTML tag from the summary for prepend_attachment()
  • Backtick-escape inline code in the description for get_extended()
  • Backtick-escape inline code in the description for get_post_type_labels()
  • Various markdown formatting in the description for add_rewrite_endpoint()
  • Markdown-indent a code snippet in the file header for wp-includes/shortcodes.php
  • Markdown-indent code snippets in the description for `add_shortcode()

Props rarst.
See #30473.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r30480 r30545  
    373373 *
    374374 * The returned array has 'main', 'extended', and 'more_text' keys. Main has the text before
    375  * the <code><!--more--></code>. The 'extended' key has the content after the
    376  * <code><!--more--></code> comment. The 'more_text' key has the custom "Read More" text.
     375 * the `<!--more-->`. The 'extended' key has the content after the
     376 * `<!--more-->` comment. The 'more_text' key has the custom "Read More" text.
    377377 *
    378378 * @since 1.0.0
     
    15951595 * - add_new - Default is Add New for both hierarchical and non-hierarchical types.
    15961596 *             When internationalizing this string, please use a gettext context
    1597  *             {@see http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context}
    1598  *             matching your post type. Example: <code>_x('Add New', 'product');</code>.
     1597 *             {@link http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context}
     1598 *             matching your post type. Example: `_x( 'Add New', 'product' );`.
    15991599 * - add_new_item - Default is Add New Post/Add New Page.
    16001600 * - edit_item - Default is Edit Post/Edit Page.
     
    16071607 *                       ones the default is 'Parent Page:'.
    16081608 * - all_items - String for the submenu. Default is All Posts/All Pages.
    1609  * - menu_name - Default is the same as <code>name</code>.
     1609 * - menu_name - Default is the same as `name`.
    16101610 *
    16111611 * Above, the first default value is for non-hierarchical post types (like posts)
Note: See TracChangeset for help on using the changeset viewer.