mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@30538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2137,7 +2137,7 @@ function wp_list_comments( $args = array(), $comments = null ) {
|
||||
* }
|
||||
* @type string $comment_field The comment textarea field HTML.
|
||||
* @type string $must_log_in HTML element for a 'must be logged in to comment' message.
|
||||
* @type string $logged_in_as HTML element for a 'logged in as <user>' message.
|
||||
* @type string $logged_in_as HTML element for a 'logged in as [user]' message.
|
||||
* @type string $comment_notes_before HTML element for a message displayed before the comment form.
|
||||
* Default 'Your email address will not be published.'.
|
||||
* @type string $comment_notes_after HTML element for a message displayed after the comment form.
|
||||
@@ -2246,7 +2246,7 @@ function comment_form( $args = array(), $post_id = null ) {
|
||||
<form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>" class="comment-form"<?php echo $html5 ? ' novalidate' : ''; ?>>
|
||||
<?php
|
||||
/**
|
||||
* Fires at the top of the comment form, inside the <form> tag.
|
||||
* Fires at the top of the comment form, inside the form tag.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user