Make WordPress Core

Changeset 30538


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.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r30384 r30538  
    869869/**
    870870 * Determines which Filesystem Method to use.
    871  * The priority of the Transports are: Direct, SSH2, FTP PHP Extension, FTP Sockets (Via Sockets class, or fsockopen())
     871 *
     872 * The priority of the Transports are: Direct, SSH2, FTP PHP Extension,
     873 * FTP Sockets (Via Sockets class, or `fsockopen()`).
    872874 *
    873875 * Note that the return value of this function can be overridden in 2 ways
    874  *  - By defining FS_METHOD in your <code>wp-config.php</code> file
     876 *
     877 *  - By defining FS_METHOD in your `wp-config.php` file
    875878 *  - By using the filesystem_method filter
    876  * Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets'
    877  * Plugins may also define a custom transport handler, See the WP_Filesystem function for more information.
     879 *
     880 * Valid values for these are: 'direct', 'ssh2', 'ftpext' or 'ftpsockets'.
     881 *
     882 * Plugins may also define a custom transport handler, See the WP_Filesystem
     883 * function for more information.
    878884 *
    879885 * @since 2.5.0
     886 *
     887 * @todo Properly mark arguments as optional.
    880888 *
    881889 * @param array $args Connection details.
     
    944952
    945953/**
    946  * Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem.
     954 * Displays a form to the user to request for their FTP/SSH details in order
     955 * to connect to the filesystem.
     956 *
    947957 * All chosen/entered details are saved, Excluding the Password.
    948958 *
    949  * Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467) to specify an alternate FTP/SSH port.
    950  *
    951  * Plugins may override this form by returning true|false via the <code>request_filesystem_credentials</code> filter.
    952  *
    953  * @since 2.5.0
     959 * Hostnames may be in the form of hostname:portnumber (eg: wordpress.org:2467)
     960 * to specify an alternate FTP/SSH port.
     961 *
     962 * Plugins may override this form by returning true|false via the
     963 * {@see 'request_filesystem_credentials'} filter.
     964 *
     965 * @since 2.5.
     966 *
     967 * @todo Properly mark optional arguments as such
    954968 *
    955969 * @param string $form_post the URL to post the form to
  • 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
  • trunk/src/wp-includes/deprecated.php

    r30202 r30538  
    452452 * Gets an array of link objects associated with category $cat_name.
    453453 *
    454  * <code>
    455  *  $links = get_linkobjectsbyname('fred');
    456  *  foreach ($links as $link) {
    457  *      echo '<li>'.$link->link_name.'</li>';
    458  *  }
    459  * </code>
     454 *     $links = get_linkobjectsbyname( 'fred' );
     455 *     foreach ( $links as $link ) {
     456 *          echo '<li>' . $link->link_name . '</li>';
     457 *     }
    460458 *
    461459 * @since 1.0.1
     
    486484 *
    487485 * Usage:
    488  * <code>
    489  *  $links = get_linkobjects(1);
    490  *  if ($links) {
    491  *      foreach ($links as $link) {
    492  *          echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>';
    493  *      }
    494  *  }
    495  * </code>
     486 *
     487 *     $links = get_linkobjects(1);
     488 *     if ($links) {
     489 *      foreach ($links as $link) {
     490 *          echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>';
     491 *      }
     492 *     }
    496493 *
    497494 * Fields are:
    498  * <ol>
    499  *  <li>link_id</li>
    500  *  <li>link_url</li>
    501  *  <li>link_name</li>
    502  *  <li>link_image</li>
    503  *  <li>link_target</li>
    504  *  <li>link_category</li>
    505  *  <li>link_description</li>
    506  *  <li>link_visible</li>
    507  *  <li>link_owner</li>
    508  *  <li>link_rating</li>
    509  *  <li>link_updated</li>
    510  *  <li>link_rel</li>
    511  *  <li>link_notes</li>
    512  * </ol>
     495 *
     496 * - link_id
     497 * - link_url
     498 * - link_name
     499 * - link_image
     500 * - link_target
     501 * - link_category
     502 * - link_description
     503 * - link_visible
     504 * - link_owner
     505 * - link_rating
     506 * - link_updated
     507 * - link_rel
     508 * - link_notes
    513509 *
    514510 * @since 1.0.1
     
    29902986 * Accepts matches array from preg_replace_callback in wpautop() or a string.
    29912987 *
    2992  * Ensures that the contents of a <<pre>>...<</pre>> HTML block are not
     2988 * Ensures that the contents of a `<pre>...</pre>` HTML block are not
    29932989 * converted into paragraphs or line-breaks.
    29942990 *
  • trunk/src/wp-includes/feed-rss2.php

    r29014 r30538  
    1212
    1313/**
    14  * Fires between the <xml> and <rss> tags in a feed.
     14 * Fires between the xml and rss tags in a feed.
    1515 *
    1616 * @since 4.0.0
Note: See TracChangeset for help on using the changeset viewer.