Ticket #14783: 14783.001.diff

File 14783.001.diff, 3.5 KB (added by duck_, 3 years ago)
  • wp-admin/admin-ajax.php

     
    99/** 
    1010 * Executing AJAX process. 
    1111 * 
    12  * @since unknown 
     12 * @since 2.1.0 
    1313 */ 
    1414define('DOING_AJAX', true); 
    1515define('WP_ADMIN', true); 
  • wp-admin/custom-background.php

     
    311311        } 
    312312 
    313313        /** 
    314          * Handle a Image upload for the background image. 
     314         * Handle an Image upload for the background image. 
    315315         * 
    316316         * @since 3.0.0 
    317317         */ 
  • wp-includes/general-template.php

     
    381381 * 
    382382 * The possible values for the 'show' parameter are listed below. 
    383383 * <ol> 
    384  * <li><strong>url<strong> - Blog URI to homepage.</li> 
     384 * <li><strong>url</strong> - Blog URI to homepage.</li> 
    385385 * <li><strong>wpurl</strong> - Blog URI path to WordPress.</li> 
    386386 * <li><strong>description</strong> - Secondary title</li> 
    387387 * </ol> 
     
    13181318 * 
    13191319 * Will only output the date if the current post's date is different from the 
    13201320 * previous one output. 
    1321  
     1321 * 
    13221322 * i.e. Only one date listing will show per day worth of posts shown in the loop, even if the 
    13231323 * function is called several times for each post. 
    13241324 * 
  • wp-includes/post.php

     
    21252125 *     'post_excerpt'  - Post excerpt. 
    21262126 * 
    21272127 * @since 1.0.0 
    2128  * @link http://core.trac.wordpress.org/ticket/9084 Bug report on 'wp_insert_post_data' filter. 
    21292128 * @uses $wpdb 
    21302129 * @uses $wp_rewrite 
    21312130 * @uses $user_ID 
    2132  * 
    21332131 * @uses do_action() Calls 'pre_post_update' on post ID if this is an update. 
    21342132 * @uses do_action() Calls 'edit_post' action on post ID and post data if this is an update. 
    2135  * @uses do_action() Calls 'save_post' and 'wp_insert_post' on post id and post data just before 
    2136  *                   returning. 
    2137  * 
    2138  * @uses apply_filters() Calls 'wp_insert_post_data' passing $data, $postarr prior to database 
    2139  *                       update or insert. 
     2133 * @uses do_action() Calls 'save_post' and 'wp_insert_post' on post id and post data just before returning. 
     2134 * @uses apply_filters() Calls 'wp_insert_post_data' passing $data, $postarr prior to database update or insert. 
    21402135 * @uses wp_transition_post_status() 
    21412136 * 
    2142  * @param array $postarr Optional. Overrides defaults. 
     2137 * @param array $postarr Elements that make up post to insert. 
    21432138 * @param bool $wp_error Optional. Allow return of WP_Error on failure. 
    21442139 * @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success. 
    21452140 */ 
    2146 function wp_insert_post($postarr = array(), $wp_error = false) { 
     2141function wp_insert_post($postarr, $wp_error = false) { 
    21472142        global $wpdb, $wp_rewrite, $user_ID; 
    21482143 
    21492144        $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID, 
  • wp-includes/wp-db.php

     
    4848 * @package WordPress 
    4949 * @subpackage Database 
    5050 * @since 0.71 
    51  * @final 
    5251 */ 
    5352class wpdb { 
    5453