Make WordPress Core

Changeset 30536


Ignore:
Timestamp:
11/24/2014 04:41:15 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:

  • Two arguments in _walk_bookmarks()
  • A code snippet in the class header for WP_Roles
  • A code snippet in the class header for WP_HTTP_Proxy
  • Inline code fixes in the summary and a parameter description for WP_oEmbed::discover()
  • An argument description in _WP_Editors::parse_settings()
  • Inline code fixes in the summary and a parameter description the embed_oembed_discover hook.

Props rarst.
See #30473.

Location:
trunk/src/wp-includes
Files:
6 edited

Legend:

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

    r29109 r30536  
    3535 *     @type int|bool $show_name        Whether to show link name if available. Accepts 1|true or
    3636 *                                      0|false. Default 0|false.
    37  *     @type string   $before           The HTML or text to prepend to each bookmark. Default '<li>'.
    38  *     @type string   $after            The HTML or text to append to each bookmark. Default '</li>'.
     37 *     @type string   $before           The HTML or text to prepend to each bookmark. Default `<li>`.
     38 *     @type string   $after            The HTML or text to append to each bookmark. Default `</li>`.
    3939 *     @type string   $link_before      The HTML or text to prepend to each bookmark inside the anchor
    4040 *                                      tags. Default empty.
  • trunk/src/wp-includes/capabilities.php

    r30122 r30536  
    1414 * in the value of the 'capability' key.
    1515 *
    16  * <code>
    17  * array (
    18  *      'rolename' => array (
    19  *          'name' => 'rolename',
    20  *          'capabilities' => array()
    21  *      )
    22  * )
    23  * </code>
     16 *     array (
     17 *          'rolename' => array (
     18 *              'name' => 'rolename',
     19 *              'capabilities' => array()
     20 *          )
     21 *     )
    2422 *
    2523 * @since 2.0.0
  • trunk/src/wp-includes/class-http.php

    r30105 r30536  
    16611661 *
    16621662 * An example can be as seen below.
    1663  * <code>
    1664  * define('WP_PROXY_HOST', '192.168.84.101');
    1665  * define('WP_PROXY_PORT', '8080');
    1666  * define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com, *.wordpress.org');
    1667  * </code>
     1663 *
     1664 *     define('WP_PROXY_HOST', '192.168.84.101');
     1665 *     define('WP_PROXY_PORT', '8080');
     1666 *     define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com, *.wordpress.org');
    16681667 *
    16691668 * @link https://core.trac.wordpress.org/ticket/4011 Proxy support ticket in WordPress.
  • trunk/src/wp-includes/class-oembed.php

    r30503 r30536  
    292292
    293293    /**
    294      * Attempts to find oEmbed provider discovery <link> tags at the given URL.
    295      *
    296      * @param string $url The URL that should be inspected for discovery <link> tags.
     294     * Attempts to discover link tags at the given URL for an oEmbed provider.
     295     *
     296     * @param string $url The URL that should be inspected for discovery `<link>` tags.
    297297     * @return bool|string False on failure, otherwise the oEmbed provider URL.
    298298     */
  • trunk/src/wp-includes/class-wp-editor.php

    r30385 r30536  
    4949     *                                         when pressing the Tab key in TinyMCE. Defualt ':prev,:next'.
    5050     *     @type string     $editor_css        Intended for extra styles for both Visual and Text editors.
    51      *                                         Should include <style> tags, and can use "scoped". Default empty.
     51     *                                         Should include `<style>` tags, and can use "scoped". Default empty.
    5252     *     @type string     $editor_class      Extra classes to add to the editor textarea elemen. Default empty.
    5353     *     @type bool       $teeny             Whether to output the minimal editor config. Examples include
  • trunk/src/wp-includes/class-wp-embed.php

    r30178 r30536  
    224224
    225225            /**
    226              * Filter whether to inspect the given URL for discoverable <link> tags.
     226             * Filter whether to inspect the given URL for discoverable link tags.
    227227             *
    228228             * @since 2.9.0
     
    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' ) );
Note: See TracChangeset for help on using the changeset viewer.