Make WordPress Core


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.