Make WordPress Core


Ignore:
Timestamp:
11/24/2014 04:57:17 AM (10 years ago)
Author:
DrewAPicture
Message:

Ensure inline code is markdown-escaped as such, and that code snippets in descriptions are properly indented.

Affects DocBlocks for the following core elements:

  • Backtick-escapes a <link> tag in a parameter description for the embed_oembed_discover hook
  • Inline code fixes in the summary and return description for WP_List_Table::get_table_classes()
  • Removes HTML markup from the summary for WP_List_Table::display_rows_or_placeholder()
  • Backtick-escapes a <tr> tag in a parameter description for WP_Users_List_Table::single_row()
  • Converts non-DocBlocks into multi-line comments in WP_Dependencies::do_items()
  • Removes HTML markup from the summary for the comment_form_top hook.
  • Inline code and snippet fixes in the description for wp_get_schedules()

Props rarst for the initial patch.
See #30473.

File:
1 edited

Legend:

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

    r29253 r30537  
    9090     */
    9191    public function do_items( $handles = false, $group = false ) {
    92         /**
     92        /*
    9393         * If nothing is passed, print the queue. If a string is passed,
    9494         * print that item. If an array is passed, print those items.
     
    100100            if ( !in_array($handle, $this->done, true) && isset($this->registered[$handle]) ) {
    101101
    102                 /**
     102                /*
    103103                 * A single item may alias a set of items, by having dependencies,
    104104                 * but no source. Queuing the item queues the dependencies.
     
    108108                 *
    109109                 * The src property is false.
    110                 **/
     110                 */
    111111                if ( ! $this->registered[$handle]->src ) {
    112112                    $this->done[] = $handle;
     
    114114                }
    115115
    116                 /**
     116                /*
    117117                 * Attempt to process the item. If successful,
    118118                 * add the handle to the done array.
Note: See TracChangeset for help on using the changeset viewer.