Make WordPress Core

Ticket #31248: 31248-4.patch

File 31248-4.patch, 5.4 KB (added by ipm-frommen, 10 years ago)
  • wp-admin/includes/template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    118118 *
    119119 * @since 2.5.1
    120120 *
    121  * @todo Properly document optional arguments as such.
    122  *
    123121 * @see wp_terms_checklist()
    124122 *
    125  * @param int $post_id Mark categories associated with this post as checked. $selected_cats must not be an array.
    126  * @param int $descendants_and_self ID of the category to output along with its descendents.
    127  * @param bool|array $selected_cats List of categories to mark as checked.
    128  * @param bool|array $popular_cats Override the list of categories that receive the "popular-category" class.
    129  * @param object $walker Walker object to use to build the output.
    130  * @param bool $checked_ontop Move checked items out of the hierarchy and to the top of the list.
     123 * @param int        $post_id              Optional. Mark categories associated with this post as checked.
     124 *                                         $selected_cats must not be an array. Default 0.
     125 * @param int        $descendants_and_self Optional. ID of the category to output along with its descendents. Default 0.
     126 * @param bool|array $selected_cats        Optional. List of categories to mark as checked. Default false.
     127 * @param bool|array $popular_cats         Optional. Override the list of categories that receive the "popular-category"
     128 *                                         class. Default false.
     129 * @param object     $walker               Optional. Walker object to use to build the output. Default null.
     130 * @param bool       $checked_ontop        Optional. Move checked items out of the hierarchy and to the top of the list.
     131 *                                         Default true.
    131132 */
    132133function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $selected_cats = false, $popular_cats = false, $walker = null, $checked_ontop = true ) {
    133134        wp_terms_checklist( $post_id, array(
     
    147148 *
    148149 * @since 3.0.0
    149150 *
    150  * @todo Properly document optional default arguments.
    151  *
    152  * @param int   $post_id Post ID.
    153  * @param array $args    Arguments to form the terms checklist.
     151 * @param int   $post_id Optional. Post ID. Default 0.
     152 * @param array $args    Optional. Arguments to form the terms checklist. Default array().
    154153 */
    155154function wp_terms_checklist( $post_id = 0, $args = array() ) {
    156155        $defaults = array(
     
    328327        }
    329328}
    330329
    331 // adds hidden fields with the data for use in the inline editor for posts and pages
    332330/**
    333  * {@internal Missing Short Description}}
     331 * Adds hidden fields with the data for use in the inline editor for posts and pages.
    334332 *
    335333 * @since 2.7.0
    336334 *
     
    13161314 *
    13171315 * @since 3.0.0
    13181316 *
    1319  * @todo Properly document optional arguments as such.
    1320  *
    13211317 * @global array $wp_settings_errors Storage array of errors registered during this pageload
    13221318 *
    13231319 * @param string $setting Slug title of the setting to which this error applies
    13241320 * @param string $code    Slug-name to identify the error. Used as part of 'id' attribute in HTML output.
    13251321 * @param string $message The formatted message text to display to the user (will be shown inside styled
    13261322 *                        `<div>` and `<p>` tags).
    1327  * @param string $type    The type of message it is, controls HTML class. Use 'error' or 'updated'.
     1323 * @param string $type    Optional. Message type, controls HTML class. Use 'error' or 'updated'. Default 'error'.
    13281324 */
    13291325function add_settings_error( $setting, $code, $message, $type = 'error' ) {
    13301326        global $wp_settings_errors;
     
    15161512 * should only be used when {@link the_search_query()} cannot.
    15171513 *
    15181514 * @since 2.7.0
    1519  *
    15201515 */
    15211516function _admin_search_query() {
    15221517        echo isset($_REQUEST['s']) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';
     
    15281523 * @since 2.7.0
    15291524 * @param string $title Title of the Iframe page.
    15301525 * @param bool $deprecated Not used.
    1531  *
    15321526 */
    15331527function iframe_header( $title = '', $deprecated = false ) {
    15341528        show_admin_bar( false );
     
    16031597 * Generic Iframe footer for use with Thickbox
    16041598 *
    16051599 * @since 2.7.0
    1606  *
    16071600 */
    16081601function iframe_footer() {
    16091602        /*
     
    18131806 *                     These attributes will be output as attribute="value", such as tabindex="1".
    18141807 *                     Defaults to no other attributes. Other attributes can also be provided as a
    18151808 *                     string such as 'tabindex="1"', though the array format is typically cleaner.
     1809 * @return string Submit button HTML.
    18161810 */
    18171811function get_submit_button( $text = '', $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = '' ) {
    18181812        if ( ! is_array( $type ) )
     
    19001894         *
    19011895         * Individual pointers (e.g. wp390_widgets) can be disabled using the following:
    19021896         *     remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
     1897         *
     1898         * @param string $hook_suffix The current admin page.
    19031899         */
    19041900        public static function enqueue_scripts( $hook_suffix ) {
    19051901                /*
     
    20672063         * Prevents new users from seeing existing 'new feature' pointers.
    20682064         *
    20692065         * @since 3.3.0
     2066         *
     2067         * @param int $user_id User ID.
    20702068         */
    20712069        public static function dismiss_pointers_for_new_users( $user_id ) {
    20722070                add_user_meta( $user_id, 'dismissed_wp_pointers', 'wp360_locks,wp390_widgets' );