Ticket #33413: 33413.2.diff
File 33413.2.diff, 24.6 KB (added by , 9 years ago) |
---|
-
wp-includes/bookmark.php
378 378 return $value; 379 379 380 380 if ( 'edit' == $context ) { 381 /** This filter is documented in wp-includes/post .php */381 /** This filter is documented in wp-includes/post-functions.php */ 382 382 $value = apply_filters( "edit_$field", $value, $bookmark_id ); 383 383 384 384 if ( 'link_notes' == $field ) { … … 387 387 $value = esc_attr($value); 388 388 } 389 389 } elseif ( 'db' == $context ) { 390 /** This filter is documented in wp-includes/post .php */390 /** This filter is documented in wp-includes/post-functions.php */ 391 391 $value = apply_filters( "pre_$field", $value ); 392 392 } else { 393 /** This filter is documented in wp-includes/post .php */393 /** This filter is documented in wp-includes/post-functions.php */ 394 394 $value = apply_filters( $field, $value, $bookmark_id, $context ); 395 395 396 396 if ( 'attribute' == $context ) { -
wp-includes/class-snoopy.php
1 1 <?php 2 2 3 3 /** 4 * Deprecated. Use WP_HTTP (http.php , class-http.php) instead.4 * Deprecated. Use WP_HTTP (http.php) instead. 5 5 */ 6 6 _deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' ); 7 7 -
wp-includes/class-wp-http-curl.php
114 114 $is_local = isset($r['local']) && $r['local']; 115 115 $ssl_verify = isset($r['sslverify']) && $r['sslverify']; 116 116 if ( $is_local ) { 117 /** This filter is documented in wp-includes/class- http.php */117 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 118 118 $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify ); 119 119 } elseif ( ! $is_local ) { 120 /** This filter is documented in wp-includes/class- http.php */120 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 121 121 $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify ); 122 122 } 123 123 -
wp-includes/comment-functions.php
1020 1020 1021 1021 clean_comment_cache($comment_id); 1022 1022 1023 /** This action is documented in wp-includes/comment .php */1023 /** This action is documented in wp-includes/comment-functions.php */ 1024 1024 do_action( 'wp_set_comment_status', $comment_id, 'delete' ); 1025 1025 1026 1026 wp_transition_comment_status('delete', $comment->comment_approved, $comment); … … 1452 1452 */ 1453 1453 $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] ); 1454 1454 } elseif ( isset( $commentdata['user_id'] ) ) { 1455 /** This filter is documented in wp-includes/comment .php */1455 /** This filter is documented in wp-includes/comment-functions.php */ 1456 1456 $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] ); 1457 1457 } 1458 1458 … … 1464 1464 * @param int $comment_agent The comment author's browser user agent. 1465 1465 */ 1466 1466 $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) ); 1467 /** This filter is documented in wp-includes/comment .php */1467 /** This filter is documented in wp-includes/comment-functions.php */ 1468 1468 $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] ); 1469 1469 /** 1470 1470 * Filter the comment content before it is set. … … 1482 1482 * @param int $comment_author_ip The comment author's IP. 1483 1483 */ 1484 1484 $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] ); 1485 /** This filter is documented in wp-includes/comment .php */1485 /** This filter is documented in wp-includes/comment-functions.php */ 1486 1486 $commentdata['comment_author_url'] = apply_filters( 'pre_comment_author_url', $commentdata['comment_author_url'] ); 1487 /** This filter is documented in wp-includes/comment .php */1487 /** This filter is documented in wp-includes/comment-functions.php */ 1488 1488 $commentdata['comment_author_email'] = apply_filters( 'pre_comment_author_email', $commentdata['comment_author_email'] ); 1489 1489 $commentdata['filtered'] = true; 1490 1490 return $commentdata; … … 1899 1899 * @param int $old The old comment count. 1900 1900 */ 1901 1901 do_action( 'wp_update_comment_count', $post_id, $new, $old ); 1902 /** This action is documented in wp-includes/post .php */1902 /** This action is documented in wp-includes/post-functions.php */ 1903 1903 do_action( 'edit_post', $post_id, $post ); 1904 1904 1905 1905 return true; … … 2381 2381 2382 2382 $post = get_post($post_id); 2383 2383 2384 /** This filter is documented in wp-includes/comment .php */2384 /** This filter is documented in wp-includes/comment-functions.php */ 2385 2385 $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); 2386 2386 if ( ! in_array( $post->post_type, $post_types ) ) 2387 2387 return $open; -
wp-includes/cron.php
296 296 'args' => array( 297 297 'timeout' => 0.01, 298 298 'blocking' => false, 299 /** This filter is documented in wp-includes/class- http.php */299 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 300 300 'sslverify' => apply_filters( 'https_local_ssl_verify', false ) 301 301 ) 302 302 ) ); -
wp-includes/media.php
706 706 $src = false; 707 707 708 708 if ( $icon && $src = wp_mime_type_icon( $attachment_id ) ) { 709 /** This filter is documented in wp-includes/post .php */709 /** This filter is documented in wp-includes/post-functions.php */ 710 710 $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' ); 711 711 712 712 $src_file = $icon_dir . '/' . wp_basename( $src ); -
wp-includes/meta-functions.php
533 533 return false; 534 534 } 535 535 536 /** This filter is documented in wp-includes/meta .php */536 /** This filter is documented in wp-includes/meta-functions.php */ 537 537 $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true ); 538 538 if ( null !== $check ) 539 539 return (bool) $check; … … 654 654 $where = array(); 655 655 $where[$id_column] = $meta_id; 656 656 657 /** This action is documented in wp-includes/meta .php */657 /** This action is documented in wp-includes/meta-functions.php */ 658 658 do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); 659 659 660 660 if ( 'post' == $meta_type ) { 661 /** This action is documented in wp-includes/meta .php */661 /** This action is documented in wp-includes/meta-functions.php */ 662 662 do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); 663 663 } 664 664 … … 670 670 // Clear the caches. 671 671 wp_cache_delete($object_id, $meta_type . '_meta'); 672 672 673 /** This action is documented in wp-includes/meta .php */673 /** This action is documented in wp-includes/meta-functions.php */ 674 674 do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); 675 675 676 676 if ( 'post' == $meta_type ) { 677 /** This action is documented in wp-includes/meta .php */677 /** This action is documented in wp-includes/meta-functions.php */ 678 678 do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); 679 679 } 680 680 … … 722 722 if ( $meta = get_metadata_by_mid( $meta_type, $meta_id ) ) { 723 723 $object_id = $meta->{$column}; 724 724 725 /** This action is documented in wp-includes/meta .php */725 /** This action is documented in wp-includes/meta-functions.php */ 726 726 do_action( "delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); 727 727 728 728 // Old-style action. … … 746 746 // Clear the caches. 747 747 wp_cache_delete($object_id, $meta_type . '_meta'); 748 748 749 /** This action is documented in wp-includes/meta .php */749 /** This action is documented in wp-includes/meta-functions.php */ 750 750 do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); 751 751 752 752 // Old-style action. -
wp-includes/post-functions.php
2077 2077 2078 2078 $counts = wp_cache_get( $cache_key, 'counts' ); 2079 2079 if ( false !== $counts ) { 2080 /** This filter is documented in wp-includes/post .php */2080 /** This filter is documented in wp-includes/post-functions.php */ 2081 2081 return apply_filters( 'wp_count_posts', $counts, $type, $perm ); 2082 2082 } 2083 2083 … … 3382 3382 $post->post_status = 'publish'; 3383 3383 wp_transition_post_status( 'publish', $old_status, $post ); 3384 3384 3385 /** This action is documented in wp-includes/post .php */3385 /** This action is documented in wp-includes/post-functions.php */ 3386 3386 do_action( 'edit_post', $post->ID, $post ); 3387 3387 3388 /** This action is documented in wp-includes/post .php */3388 /** This action is documented in wp-includes/post-functions.php */ 3389 3389 do_action( "save_post_{$post->post_type}", $post->ID, $post, true ); 3390 3390 3391 /** This action is documented in wp-includes/post .php */3391 /** This action is documented in wp-includes/post-functions.php */ 3392 3392 do_action( 'save_post', $post->ID, $post, true ); 3393 3393 3394 /** This action is documented in wp-includes/post .php */3394 /** This action is documented in wp-includes/post-functions.php */ 3395 3395 do_action( 'wp_insert_post', $post->ID, $post, true ); 3396 3396 } 3397 3397 … … 4287 4287 if ( $cache = wp_cache_get( $cache_key, 'posts' ) ) { 4288 4288 // Convert to WP_Post instances. 4289 4289 $pages = array_map( 'get_post', $cache ); 4290 /** This filter is documented in wp-includes/post .php */4290 /** This filter is documented in wp-includes/post-functions.php */ 4291 4291 $pages = apply_filters( 'get_pages', $pages, $r ); 4292 4292 return $pages; 4293 4293 } … … 4429 4429 $pages = $wpdb->get_results($query); 4430 4430 4431 4431 if ( empty($pages) ) { 4432 /** This filter is documented in wp-includes/post .php */4432 /** This filter is documented in wp-includes/post-functions.php */ 4433 4433 $pages = apply_filters( 'get_pages', array(), $r ); 4434 4434 return $pages; 4435 4435 } … … 4614 4614 foreach ( $post_meta_ids as $mid ) 4615 4615 delete_metadata_by_mid( 'post', $mid ); 4616 4616 4617 /** This action is documented in wp-includes/post .php */4617 /** This action is documented in wp-includes/post-functions.php */ 4618 4618 do_action( 'delete_post', $post_id ); 4619 4619 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); 4620 4620 if ( ! $result ) { 4621 4621 return false; 4622 4622 } 4623 /** This action is documented in wp-includes/post .php */4623 /** This action is documented in wp-includes/post-functions.php */ 4624 4624 do_action( 'deleted_post', $post_id ); 4625 4625 4626 4626 $uploadpath = wp_upload_dir(); -
wp-includes/taxonomy-functions.php
814 814 815 815 wp_cache_add( $term->term_id, $term, $taxonomy ); 816 816 817 /** This filter is documented in wp-includes/taxonomy .php */817 /** This filter is documented in wp-includes/taxonomy-functions.php */ 818 818 $term = apply_filters( 'get_term', $term, $taxonomy ); 819 819 820 /** This filter is documented in wp-includes/taxonomy .php */820 /** This filter is documented in wp-includes/taxonomy-functions.php */ 821 821 $term = apply_filters( "get_$taxonomy", $term, $taxonomy ); 822 822 823 823 $term = sanitize_term($term, $taxonomy, $filter); … … 1365 1365 if ( empty($terms) ) { 1366 1366 wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS ); 1367 1367 1368 /** This filter is documented in wp-includes/taxonomy .php */1368 /** This filter is documented in wp-includes/taxonomy-functions.php */ 1369 1369 return apply_filters( 'get_terms', array(), $taxonomies, $args ); 1370 1370 } 1371 1371 … … 2335 2335 if ( empty($slug) ) { 2336 2336 $slug = sanitize_title($slug, $term_id); 2337 2337 2338 /** This action is documented in wp-includes/taxonomy .php */2338 /** This action is documented in wp-includes/taxonomy-functions.php */ 2339 2339 do_action( 'edit_terms', $term_id, $taxonomy ); 2340 2340 $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) ); 2341 2341 2342 /** This action is documented in wp-includes/taxonomy .php */2342 /** This action is documented in wp-includes/taxonomy-functions.php */ 2343 2343 do_action( 'edited_terms', $term_id, $taxonomy ); 2344 2344 } 2345 2345 … … 2975 2975 */ 2976 2976 do_action( "edit_$taxonomy", $term_id, $tt_id ); 2977 2977 2978 /** This filter is documented in wp-includes/taxonomy .php */2978 /** This filter is documented in wp-includes/taxonomy-functions.php */ 2979 2979 $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id ); 2980 2980 2981 2981 clean_term_cache($term_id, $taxonomy); … … 3527 3527 if ( $object_types ) 3528 3528 $count += (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND post_status = 'publish' AND post_type IN ('" . implode("', '", $object_types ) . "') AND term_taxonomy_id = %d", $term ) ); 3529 3529 3530 /** This action is documented in wp-includes/taxonomy .php */3530 /** This action is documented in wp-includes/taxonomy-functions.php */ 3531 3531 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3532 3532 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3533 3533 3534 /** This action is documented in wp-includes/taxonomy .php */3534 /** This action is documented in wp-includes/taxonomy-functions.php */ 3535 3535 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3536 3536 } 3537 3537 } … … 3554 3554 foreach ( (array) $terms as $term ) { 3555 3555 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) ); 3556 3556 3557 /** This action is documented in wp-includes/taxonomy .php */3557 /** This action is documented in wp-includes/taxonomy-functions.php */ 3558 3558 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3559 3559 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3560 3560 3561 /** This action is documented in wp-includes/taxonomy .php */3561 /** This action is documented in wp-includes/taxonomy-functions.php */ 3562 3562 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3563 3563 } 3564 3564 } … … 4229 4229 4230 4230 if ( empty( $object_id ) ) { 4231 4231 4232 /** This filter is documented in wp-includes/taxonomy .php */4232 /** This filter is documented in wp-includes/taxonomy-functions.php */ 4233 4233 return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type ); 4234 4234 } 4235 4235 -
wp-includes/user-functions.php
997 997 if ( 'edit' == $context ) { 998 998 if ( $prefixed ) { 999 999 1000 /** This filter is documented in wp-includes/post .php */1000 /** This filter is documented in wp-includes/post-functions.php */ 1001 1001 $value = apply_filters( "edit_{$field}", $value, $user_id ); 1002 1002 } else { 1003 1003 … … 1021 1021 $value = esc_attr($value); 1022 1022 } elseif ( 'db' == $context ) { 1023 1023 if ( $prefixed ) { 1024 /** This filter is documented in wp-includes/post .php */1024 /** This filter is documented in wp-includes/post-functions.php */ 1025 1025 $value = apply_filters( "pre_{$field}", $value ); 1026 1026 } else { 1027 1027 … … 1041 1041 // Use display filters by default. 1042 1042 if ( $prefixed ) { 1043 1043 1044 /** This filter is documented in wp-includes/post .php */1044 /** This filter is documented in wp-includes/post-functions.php */ 1045 1045 $value = apply_filters( $field, $value, $user_id, $context ); 1046 1046 } else { 1047 1047 -
wp-includes/widget-functions.php
518 518 519 519 $sidebars_widgets = wp_get_sidebars_widgets(); 520 520 if ( empty( $wp_registered_sidebars[ $index ] ) || empty( $sidebars_widgets[ $index ] ) || ! is_array( $sidebars_widgets[ $index ] ) ) { 521 /** This action is documented in wp-includes/widget s.php */521 /** This action is documented in wp-includes/widget-functions.php */ 522 522 do_action( 'dynamic_sidebar_before', $index, false ); 523 /** This action is documented in wp-includes/widget s.php */523 /** This action is documented in wp-includes/widget-functions.php */ 524 524 do_action( 'dynamic_sidebar_after', $index, false ); 525 /** This filter is documented in wp-includes/widget s.php */525 /** This filter is documented in wp-includes/widget-functions.php */ 526 526 return apply_filters( 'dynamic_sidebar_has_widgets', false, $index ); 527 527 } 528 528 … … 909 909 * 910 910 * @global WP_Widget_Factory $wp_widget_factory 911 911 * 912 * @param string $widget The widget's PHP class name (see default-widgets.php).912 * @param string $widget The widget's PHP class name (see class-wp-widget.php). 913 913 * @param array $instance Optional. The widget's instance settings. Default empty array. 914 914 * @param array $args { 915 915 * Optional. Array of arguments to configure the display of the widget. -
wp-includes/widgets/class-wp-nav-menu-widget.php
24 24 if ( !$nav_menu ) 25 25 return; 26 26 27 /** This filter is documented in wp-includes/ default-widgets.php */27 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 28 28 $instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 29 29 30 30 echo $args['before_widget']; -
wp-includes/widgets/class-wp-widget-archives.php
21 21 $c = ! empty( $instance['count'] ) ? '1' : '0'; 22 22 $d = ! empty( $instance['dropdown'] ) ? '1' : '0'; 23 23 24 /** This filter is documented in wp-includes/ default-widgets.php */24 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 25 25 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Archives' ) : $instance['title'], $instance, $this->id_base ); 26 26 27 27 echo $args['before_widget']; -
wp-includes/widgets/class-wp-widget-calendar.php
18 18 * @param array $instance 19 19 */ 20 20 public function widget( $args, $instance ) { 21 /** This filter is documented in wp-includes/ default-widgets.php */21 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 22 22 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 23 23 24 24 echo $args['before_widget']; -
wp-includes/widgets/class-wp-widget-categories.php
22 22 public function widget( $args, $instance ) { 23 23 static $first_dropdown = true; 24 24 25 /** This filter is documented in wp-includes/ default-widgets.php */25 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 26 26 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base ); 27 27 28 28 $c = ! empty( $instance['count'] ) ? '1' : '0'; -
wp-includes/widgets/class-wp-widget-meta.php
20 20 * @param array $instance 21 21 */ 22 22 public function widget( $args, $instance ) { 23 /** This filter is documented in wp-includes/ default-widgets.php */23 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 24 24 $title = apply_filters( 'widget_title', empty($instance['title']) ? __( 'Meta' ) : $instance['title'], $instance, $this->id_base ); 25 25 26 26 echo $args['before_widget']; -
wp-includes/widgets/class-wp-widget-recent-comments.php
73 73 74 74 $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Comments' ); 75 75 76 /** This filter is documented in wp-includes/ default-widgets.php */76 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 77 77 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 78 78 79 79 $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5; -
wp-includes/widgets/class-wp-widget-recent-posts.php
45 45 46 46 $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Posts' ); 47 47 48 /** This filter is documented in wp-includes/ default-widgets.php */48 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 49 49 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 50 50 51 51 $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5; -
wp-includes/widgets/class-wp-widget-rss.php
50 50 if ( empty($title) ) 51 51 $title = empty($desc) ? __('Unknown Feed') : $desc; 52 52 53 /** This filter is documented in wp-includes/ default-widgets.php */53 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 54 54 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 55 55 56 56 $url = strip_tags( $url ); -
wp-includes/widgets/class-wp-widget-search.php
18 18 * @param array $instance 19 19 */ 20 20 public function widget( $args, $instance ) { 21 /** This filter is documented in wp-includes/ default-widgets.php */21 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 22 22 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 23 23 24 24 echo $args['before_widget']; -
wp-includes/widgets/class-wp-widget-tag-cloud.php
30 30 } 31 31 } 32 32 33 /** This filter is documented in wp-includes/ default-widgets.php */33 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 34 34 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 35 35 36 36 echo $args['before_widget']; -
wp-includes/widgets/class-wp-widget-text.php
19 19 * @param array $instance 20 20 */ 21 21 public function widget( $args, $instance ) { 22 /** This filter is documented in wp-includes/ default-widgets.php */22 /** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */ 23 23 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 24 24 25 25 /**