Ticket #14783: 14783.001.diff
| File 14783.001.diff, 3.5 KB (added by duck_, 3 years ago) |
|---|
-
wp-admin/admin-ajax.php
9 9 /** 10 10 * Executing AJAX process. 11 11 * 12 * @since unknown12 * @since 2.1.0 13 13 */ 14 14 define('DOING_AJAX', true); 15 15 define('WP_ADMIN', true); -
wp-admin/custom-background.php
311 311 } 312 312 313 313 /** 314 * Handle a Image upload for the background image.314 * Handle an Image upload for the background image. 315 315 * 316 316 * @since 3.0.0 317 317 */ -
wp-includes/general-template.php
381 381 * 382 382 * The possible values for the 'show' parameter are listed below. 383 383 * <ol> 384 * <li><strong>url< strong> - Blog URI to homepage.</li>384 * <li><strong>url</strong> - Blog URI to homepage.</li> 385 385 * <li><strong>wpurl</strong> - Blog URI path to WordPress.</li> 386 386 * <li><strong>description</strong> - Secondary title</li> 387 387 * </ol> … … 1318 1318 * 1319 1319 * Will only output the date if the current post's date is different from the 1320 1320 * previous one output. 1321 1321 * 1322 1322 * i.e. Only one date listing will show per day worth of posts shown in the loop, even if the 1323 1323 * function is called several times for each post. 1324 1324 * -
wp-includes/post.php
2125 2125 * 'post_excerpt' - Post excerpt. 2126 2126 * 2127 2127 * @since 1.0.0 2128 * @link http://core.trac.wordpress.org/ticket/9084 Bug report on 'wp_insert_post_data' filter.2129 2128 * @uses $wpdb 2130 2129 * @uses $wp_rewrite 2131 2130 * @uses $user_ID 2132 *2133 2131 * @uses do_action() Calls 'pre_post_update' on post ID if this is an update. 2134 2132 * @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. 2140 2135 * @uses wp_transition_post_status() 2141 2136 * 2142 * @param array $postarr Optional. Overrides defaults.2137 * @param array $postarr Elements that make up post to insert. 2143 2138 * @param bool $wp_error Optional. Allow return of WP_Error on failure. 2144 2139 * @return int|WP_Error The value 0 or WP_Error on failure. The post ID on success. 2145 2140 */ 2146 function wp_insert_post($postarr = array(), $wp_error = false) {2141 function wp_insert_post($postarr, $wp_error = false) { 2147 2142 global $wpdb, $wp_rewrite, $user_ID; 2148 2143 2149 2144 $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID, -
wp-includes/wp-db.php
48 48 * @package WordPress 49 49 * @subpackage Database 50 50 * @since 0.71 51 * @final52 51 */ 53 52 class wpdb { 54 53
