Make WordPress Core


Ignore:
Timestamp:
11/24/2014 05:18:56 AM (10 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:

  • Remove HTML tag from parameter description in comment_form()
  • Remove HTML tag from a summary for the comment_form_top hook
  • Markdown-indent a code snippet in the description for get_linkobjectsbyname()
  • Markdown-indent a code snippet and format an unordered list in the description for get_linkobjects()
  • Backtick-escape some inline code in the description for clean_pre()
  • Remove HTML tag from the summary for the rss_tag_pre hook
  • Various formatting fixes in the descriptions for get_filesystem_method() and request_filesystem_credentials()

Props rarst for the initial patch.
See #30473.

File:
1 edited

Legend:

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

    r30111 r30538  
    21382138 *     @type string $comment_field        The comment textarea field HTML.
    21392139 *     @type string $must_log_in          HTML element for a 'must be logged in to comment' message.
    2140  *     @type string $logged_in_as         HTML element for a 'logged in as <user>' message.
     2140 *     @type string $logged_in_as         HTML element for a 'logged in as [user]' message.
    21412141 *     @type string $comment_notes_before HTML element for a message displayed before the comment form.
    21422142 *                                        Default 'Your email address will not be published.'.
     
    22472247                        <?php
    22482248                        /**
    2249                          * Fires at the top of the comment form, inside the <form> tag.
     2249                         * Fires at the top of the comment form, inside the form tag.
    22502250                         *
    22512251                         * @since 3.0.0
Note: See TracChangeset for help on using the changeset viewer.