Changeset 33954
- Timestamp:
- 09/08/2015 10:16:57 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/bookmark.php
r32527 r33954 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 … … 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 -
trunk/src/wp-includes/class-snoopy.php
r24591 r33954 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' ); -
trunk/src/wp-includes/class-wp-http-curl.php
r33874 r33954 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 } -
trunk/src/wp-includes/comment-functions.php
r33948 r33954 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 … … 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 } … … 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 /** … … 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; … … 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 … … 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 ) ) -
trunk/src/wp-includes/cron.php
r33936 r33954 317 317 'timeout' => 0.01, 318 318 'blocking' => false, 319 /** This filter is documented in wp-includes/class- http.php */319 /** This filter is documented in wp-includes/class-wp-http-streams.php */ 320 320 'sslverify' => apply_filters( 'https_local_ssl_verify', false ) 321 321 ) -
trunk/src/wp-includes/media.php
r33844 r33954 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 -
trunk/src/wp-includes/meta-functions.php
r33761 r33954 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 ) … … 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 } … … 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 } … … 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 … … 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 -
trunk/src/wp-includes/post-functions.php
r33931 r33954 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 } … … 3392 3392 wp_transition_post_status( 'publish', $old_status, $post ); 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( 'edit_post', $post->ID, $post ); 3396 3396 3397 /** This action is documented in wp-includes/post .php */3397 /** This action is documented in wp-includes/post-functions.php */ 3398 3398 do_action( "save_post_{$post->post_type}", $post->ID, $post, true ); 3399 3399 3400 /** This action is documented in wp-includes/post .php */3400 /** This action is documented in wp-includes/post-functions.php */ 3401 3401 do_action( 'save_post', $post->ID, $post, true ); 3402 3402 3403 /** This action is documented in wp-includes/post .php */3403 /** This action is documented in wp-includes/post-functions.php */ 3404 3404 do_action( 'wp_insert_post', $post->ID, $post, true ); 3405 3405 } … … 4298 4298 // Convert to WP_Post instances. 4299 4299 $pages = array_map( 'get_post', $cache ); 4300 /** This filter is documented in wp-includes/post .php */4300 /** This filter is documented in wp-includes/post-functions.php */ 4301 4301 $pages = apply_filters( 'get_pages', $pages, $r ); 4302 4302 return $pages; … … 4440 4440 4441 4441 if ( empty($pages) ) { 4442 /** This filter is documented in wp-includes/post .php */4442 /** This filter is documented in wp-includes/post-functions.php */ 4443 4443 $pages = apply_filters( 'get_pages', array(), $r ); 4444 4444 return $pages; … … 4625 4625 delete_metadata_by_mid( 'post', $mid ); 4626 4626 4627 /** This action is documented in wp-includes/post .php */4627 /** This action is documented in wp-includes/post-functions.php */ 4628 4628 do_action( 'delete_post', $post_id ); 4629 4629 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); … … 4631 4631 return false; 4632 4632 } 4633 /** This action is documented in wp-includes/post .php */4633 /** This action is documented in wp-includes/post-functions.php */ 4634 4634 do_action( 'deleted_post', $post_id ); 4635 4635 -
trunk/src/wp-includes/taxonomy-functions.php
r33903 r33954 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 … … 1367 1367 wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS ); 1368 1368 1369 /** This filter is documented in wp-includes/taxonomy .php */1369 /** This filter is documented in wp-includes/taxonomy-functions.php */ 1370 1370 return apply_filters( 'get_terms', array(), $taxonomies, $args ); 1371 1371 } … … 2337 2337 $slug = sanitize_title($slug, $term_id); 2338 2338 2339 /** This action is documented in wp-includes/taxonomy .php */2339 /** This action is documented in wp-includes/taxonomy-functions.php */ 2340 2340 do_action( 'edit_terms', $term_id, $taxonomy ); 2341 2341 $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) ); 2342 2342 2343 /** This action is documented in wp-includes/taxonomy .php */2343 /** This action is documented in wp-includes/taxonomy-functions.php */ 2344 2344 do_action( 'edited_terms', $term_id, $taxonomy ); 2345 2345 } … … 2977 2977 do_action( "edit_$taxonomy", $term_id, $tt_id ); 2978 2978 2979 /** This filter is documented in wp-includes/taxonomy .php */2979 /** This filter is documented in wp-includes/taxonomy-functions.php */ 2980 2980 $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id ); 2981 2981 … … 3529 3529 $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 ) ); 3530 3530 3531 /** This action is documented in wp-includes/taxonomy .php */3531 /** This action is documented in wp-includes/taxonomy-functions.php */ 3532 3532 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3533 3533 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3534 3534 3535 /** This action is documented in wp-includes/taxonomy .php */3535 /** This action is documented in wp-includes/taxonomy-functions.php */ 3536 3536 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3537 3537 } … … 3556 3556 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) ); 3557 3557 3558 /** This action is documented in wp-includes/taxonomy .php */3558 /** This action is documented in wp-includes/taxonomy-functions.php */ 3559 3559 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3560 3560 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3561 3561 3562 /** This action is documented in wp-includes/taxonomy .php */3562 /** This action is documented in wp-includes/taxonomy-functions.php */ 3563 3563 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3564 3564 } … … 4231 4231 if ( empty( $object_id ) ) { 4232 4232 4233 /** This filter is documented in wp-includes/taxonomy .php */4233 /** This filter is documented in wp-includes/taxonomy-functions.php */ 4234 4234 return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type ); 4235 4235 } -
trunk/src/wp-includes/user-functions.php
r33896 r33954 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 { … … 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 { … … 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 { -
trunk/src/wp-includes/widget-functions.php
r33871 r33954 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 } … … 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 { -
trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r33951 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-calendar.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-categories.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-meta.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php
r33951 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-rss.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-search.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-tag-cloud.php
r33843 r33954 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 -
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r33951 r33954 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
Note: See TracChangeset
for help on using the changeset viewer.