Make WordPress Core


Ignore:
Timestamp:
11/24/2014 05:38:44 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:

  • Markdown-indent a code snippet in the description for _deprecated_argument()
  • Markdown-indent a code snippet in the description for wp_localize_script()
  • Backtick-escape HTML tags in two parameter descriptions for wp_register()
  • Various DocBlock formatting in the description for get_bloginfo()
  • Remove HTML tag from the summary for _wp_render_title_tag()
  • Backtick-escape a HTML tag in the description for get_archives_link()
  • Markdown-indent a code snippet in the description for wp_admin_css_color()
  • Markdown-indent a code snippet in the description for the welcome_panel hook

Props rarst.
See #30473.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-scripts.php

    r29788 r30541  
    9191 *
    9292 * Accepts an associative array $l10n and creates a JavaScript object:
    93  * <code>
    94  * "$object_name" = {
    95  *       key: value,
    96  *       key: value,
    97  *       ...
    98  * }
    99  * </code>
     93 *
     94 *     "$object_name" = {
     95 *         key: value,
     96 *         key: value,
     97 *         ...
     98 *     }
     99 *
    100100 *
    101101 * @see WP_Dependencies::localize()
     
    104104 *
    105105 * @since 2.6.0
     106 *
     107 * @todo Documentation cleanup
    106108 *
    107109 * @param string $handle      Script handle the data will be attached to.
Note: See TracChangeset for help on using the changeset viewer.