Make WordPress Core

Changeset 30537


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.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r30227 r30537  
    914914
    915915    /**
    916      * Get a list of CSS classes for the <table> tag
    917      *
    918      * @since 3.1.0
    919      * @access protected
    920      *
    921      * @return array
     916     * Get a list of CSS classes for the list table table tag.
     917     *
     918     * @since 3.1.0
     919     * @access protected
     920     *
     921     * @return array List of CSS classes for the table tag.
    922922     */
    923923    protected function get_table_classes() {
     
    959959
    960960    /**
    961      * Generate the <tbody> part of the table
     961     * Generate the tbody element for the list table.
    962962     *
    963963     * @since 3.1.0
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r29707 r30537  
    332332     *
    333333     * @param object $user_object The current user object.
    334      * @param string $style       Optional. Style attributes added to the <tr> element.
     334     * @param string $style       Optional. Style attributes added to the `<tr>` element.
    335335     *                            Must be sanitized. Default empty.
    336336     * @param string $role        Optional. Key for the $wp_roles array. Default empty.
  • trunk/src/wp-includes/class-wp-embed.php

    r30536 r30537  
    230230             * @see WP_oEmbed::discover()
    231231             *
    232              * @param bool $enable Whether to enable link tag discovery. Default false.
     232             * @param bool $enable Whether to enable `<link>` tag discovery. Default false.
    233233             */
    234234            $attr['discover'] = ( apply_filters( 'embed_oembed_discover', false ) && author_can( $post_ID, 'unfiltered_html' ) );
  • 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.
  • trunk/src/wp-includes/cron.php

    r29939 r30537  
    350350 *
    351351 * The 'display' is the description. For the 'weekly' key, the 'display' would
    352  * be <code>__('Once Weekly')</code>.
     352 * be `__( 'Once Weekly' )`.
    353353 *
    354354 * For your plugin, you will be passed an array. you can easily add your
    355355 * schedule by doing the following.
    356  * <code>
    357  * // filter parameter variable name is 'array'
    358  *  $array['weekly'] = array(
    359  *      'interval' => 604800,
    360  *      'display' => __('Once Weekly')
    361  *  );
    362  * </code>
     356 *
     357 *     // Filter parameter variable name is 'array'.
     358 *     $array['weekly'] = array(
     359 *         'interval' => 604800,
     360 *         'display'  => __( 'Once Weekly' )
     361 *     );
     362 *
    363363 *
    364364 * @since 2.1.0
Note: See TracChangeset for help on using the changeset viewer.