Ticket #46503: #46503.diff
File #46503.diff, 3.3 KB (added by , 6 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
1214 1214 if ( wp_create_nonce( 'unfiltered-html-comment' ) != $_POST['_wp_unfiltered_html_comment'] ) { 1215 1215 kses_remove_filters(); // start with a clean slate 1216 1216 kses_init_filters(); // set up the filters 1217 remove_filter( 'pre_comment_content', 'wp_filter_post_kses' ); 1218 add_filter( 'pre_comment_content', 'wp_filter_kses' ); 1217 1219 } 1218 1220 } 1219 1221 } else { … … 3034 3036 * 3035 3037 * @since 3.5.0 3036 3038 * 3037 * @global WP_Post $post 3038 * @global WP_Embed $wp_embed 3039 * @global WP_Post $post Global $post. 3040 * @global WP_Embed $wp_embed Embed API instance. 3039 3041 */ 3040 3042 function wp_ajax_send_link_to_editor() { 3041 3043 global $post, $wp_embed; … … 3478 3480 /** 3479 3481 * @since 4.0.0 3480 3482 * 3481 * @global WP_Post $post 3483 * @global WP_Post $post Global $post. 3482 3484 * @global WP_Scripts $wp_scripts 3483 3485 */ 3484 3486 function wp_ajax_parse_media_shortcode() { -
wp-includes/class-wp-query.php
3236 3236 * 3237 3237 * @since 1.5.0 3238 3238 * 3239 * @global WP_Post $post 3239 * @global WP_Post $post Global $post. 3240 3240 */ 3241 3241 public function the_post() { 3242 3242 global $post; … … 4243 4243 * 4244 4244 * @since 3.7.0 4245 4245 * 4246 * @global WP_Post $post 4246 * @global WP_Post $post Global $post. 4247 4247 */ 4248 4248 public function reset_postdata() { 4249 4249 if ( ! empty( $this->post ) ) { -
wp-includes/post.php
580 580 * @see get_posts() 581 581 * @todo Check validity of description. 582 582 * 583 * @global WP_Post $post 583 * @global WP_Post $post Global $post. 584 584 * 585 585 * @param mixed $args Optional. User defined arguments for replacing the defaults. Default empty. 586 586 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to -
wp-includes/widgets/class-wp-widget-custom-html.php
103 103 * 104 104 * @since 4.8.1 105 105 * 106 * @global WP_Post $post 106 * @global WP_Post $post Global $post. 107 107 * @param array $args Display arguments including 'before_title', 'after_title', 108 108 * 'before_widget', and 'after_widget'. 109 109 * @param array $instance Settings for the current Custom HTML widget instance. -
wp-includes/widgets/class-wp-widget-text.php
212 212 * 213 213 * @since 2.8.0 214 214 * 215 * @global WP_Post $post 215 * @global WP_Post $post Global $post. 216 216 * 217 217 * @param array $args Display arguments including 'before_title', 'after_title', 218 218 * 'before_widget', and 'after_widget'.