Changeset 35725
- Timestamp:
- 11/22/2015 03:50:32 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r35718 r35725 1949 1949 <!--[if !(IE 8) ]><!--> 1950 1950 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php 1951 /** This action is documented in wp-admin/includes/template -functions.php */1951 /** This action is documented in wp-admin/includes/template.php */ 1952 1952 do_action( 'admin_xml_ns' ); 1953 1953 ?> <?php language_attributes(); ?>> -
trunk/src/wp-admin/includes/user.php
r35630 r35725 143 143 $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' )); 144 144 145 /** This filter is documented in wp-includes/user -functions.php */145 /** This filter is documented in wp-includes/user.php */ 146 146 $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); 147 147 -
trunk/src/wp-includes/bookmark.php
r33954 r35725 379 379 380 380 if ( 'edit' == $context ) { 381 /** This filter is documented in wp-includes/post -functions.php */381 /** This filter is documented in wp-includes/post.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 -functions.php */390 /** This filter is documented in wp-includes/post.php */ 391 391 $value = apply_filters( "pre_$field", $value ); 392 392 } else { 393 /** This filter is documented in wp-includes/post -functions.php */393 /** This filter is documented in wp-includes/post.php */ 394 394 $value = apply_filters( $field, $value, $bookmark_id, $context ); 395 395 -
trunk/src/wp-includes/comment.php
r35718 r35725 1119 1119 clean_comment_cache( $comment->comment_ID ); 1120 1120 1121 /** This action is documented in wp-includes/comment -functions.php */1121 /** This action is documented in wp-includes/comment.php */ 1122 1122 do_action( 'wp_set_comment_status', $comment->comment_ID, 'delete' ); 1123 1123 … … 1567 1567 $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] ); 1568 1568 } elseif ( isset( $commentdata['user_id'] ) ) { 1569 /** This filter is documented in wp-includes/comment -functions.php */1569 /** This filter is documented in wp-includes/comment.php */ 1570 1570 $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] ); 1571 1571 } … … 1579 1579 */ 1580 1580 $commentdata['comment_agent'] = apply_filters( 'pre_comment_user_agent', ( isset( $commentdata['comment_agent'] ) ? $commentdata['comment_agent'] : '' ) ); 1581 /** This filter is documented in wp-includes/comment -functions.php */1581 /** This filter is documented in wp-includes/comment.php */ 1582 1582 $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] ); 1583 1583 /** … … 1597 1597 */ 1598 1598 $commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] ); 1599 /** This filter is documented in wp-includes/comment -functions.php */1599 /** This filter is documented in wp-includes/comment.php */ 1600 1600 $commentdata['comment_author_url'] = apply_filters( 'pre_comment_author_url', $commentdata['comment_author_url'] ); 1601 /** This filter is documented in wp-includes/comment -functions.php */1601 /** This filter is documented in wp-includes/comment.php */ 1602 1602 $commentdata['comment_author_email'] = apply_filters( 'pre_comment_author_email', $commentdata['comment_author_email'] ); 1603 1603 $commentdata['filtered'] = true; … … 1760 1760 $maybe_notify = ( '0' == $comment->comment_approved ); 1761 1761 1762 /** This filter is documented in wp-includes/comment -functions.php */1762 /** This filter is documented in wp-includes/comment.php */ 1763 1763 $maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_ID ); 1764 1764 … … 2070 2070 */ 2071 2071 do_action( 'wp_update_comment_count', $post_id, $new, $old ); 2072 /** This action is documented in wp-includes/post -functions.php */2072 /** This action is documented in wp-includes/post.php */ 2073 2073 do_action( 'edit_post', $post_id, $post ); 2074 2074 … … 2587 2587 $post = get_post($post_id); 2588 2588 2589 /** This filter is documented in wp-includes/comment -functions.php */2589 /** This filter is documented in wp-includes/comment.php */ 2590 2590 $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) ); 2591 2591 if ( ! in_array( $post->post_type, $post_types ) ) -
trunk/src/wp-includes/media.php
r35716 r35725 756 756 757 757 if ( $icon && $src = wp_mime_type_icon( $attachment_id ) ) { 758 /** This filter is documented in wp-includes/post -functions.php */758 /** This filter is documented in wp-includes/post.php */ 759 759 $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' ); 760 760 -
trunk/src/wp-includes/meta.php
r35718 r35725 533 533 } 534 534 535 /** This filter is documented in wp-includes/meta -functions.php */535 /** This filter is documented in wp-includes/meta.php */ 536 536 $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true ); 537 537 if ( null !== $check ) … … 654 654 $where[$id_column] = $meta_id; 655 655 656 /** This action is documented in wp-includes/meta -functions.php */656 /** This action is documented in wp-includes/meta.php */ 657 657 do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); 658 658 659 659 if ( 'post' == $meta_type ) { 660 /** This action is documented in wp-includes/meta -functions.php */660 /** This action is documented in wp-includes/meta.php */ 661 661 do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); 662 662 } … … 670 670 wp_cache_delete($object_id, $meta_type . '_meta'); 671 671 672 /** This action is documented in wp-includes/meta -functions.php */672 /** This action is documented in wp-includes/meta.php */ 673 673 do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); 674 674 675 675 if ( 'post' == $meta_type ) { 676 /** This action is documented in wp-includes/meta -functions.php */676 /** This action is documented in wp-includes/meta.php */ 677 677 do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); 678 678 } … … 722 722 $object_id = $meta->{$column}; 723 723 724 /** This action is documented in wp-includes/meta -functions.php */724 /** This action is documented in wp-includes/meta.php */ 725 725 do_action( "delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); 726 726 … … 746 746 wp_cache_delete($object_id, $meta_type . '_meta'); 747 747 748 /** This action is documented in wp-includes/meta -functions.php */748 /** This action is documented in wp-includes/meta.php */ 749 749 do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); 750 750 -
trunk/src/wp-includes/ms-functions.php
r35630 r35725 432 432 } 433 433 434 /** This filter is documented in wp-includes/user -functions.php */434 /** This filter is documented in wp-includes/user.php */ 435 435 $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); 436 436 -
trunk/src/wp-includes/post.php
r35718 r35725 2130 2130 $counts = wp_cache_get( $cache_key, 'counts' ); 2131 2131 if ( false !== $counts ) { 2132 /** This filter is documented in wp-includes/post -functions.php */2132 /** This filter is documented in wp-includes/post.php */ 2133 2133 return apply_filters( 'wp_count_posts', $counts, $type, $perm ); 2134 2134 } … … 3485 3485 wp_transition_post_status( 'publish', $old_status, $post ); 3486 3486 3487 /** This action is documented in wp-includes/post -functions.php */3487 /** This action is documented in wp-includes/post.php */ 3488 3488 do_action( 'edit_post', $post->ID, $post ); 3489 3489 3490 /** This action is documented in wp-includes/post -functions.php */3490 /** This action is documented in wp-includes/post.php */ 3491 3491 do_action( "save_post_{$post->post_type}", $post->ID, $post, true ); 3492 3492 3493 /** This action is documented in wp-includes/post -functions.php */3493 /** This action is documented in wp-includes/post.php */ 3494 3494 do_action( 'save_post', $post->ID, $post, true ); 3495 3495 3496 /** This action is documented in wp-includes/post -functions.php */3496 /** This action is documented in wp-includes/post.php */ 3497 3497 do_action( 'wp_insert_post', $post->ID, $post, true ); 3498 3498 } … … 4404 4404 // Convert to WP_Post instances. 4405 4405 $pages = array_map( 'get_post', $cache ); 4406 /** This filter is documented in wp-includes/post -functions.php */4406 /** This filter is documented in wp-includes/post.php */ 4407 4407 $pages = apply_filters( 'get_pages', $pages, $r ); 4408 4408 return $pages; … … 4546 4546 4547 4547 if ( empty($pages) ) { 4548 /** This filter is documented in wp-includes/post -functions.php */4548 /** This filter is documented in wp-includes/post.php */ 4549 4549 $pages = apply_filters( 'get_pages', array(), $r ); 4550 4550 return $pages; … … 4736 4736 delete_metadata_by_mid( 'post', $mid ); 4737 4737 4738 /** This action is documented in wp-includes/post -functions.php */4738 /** This action is documented in wp-includes/post.php */ 4739 4739 do_action( 'delete_post', $post_id ); 4740 4740 $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) ); … … 4742 4742 return false; 4743 4743 } 4744 /** This action is documented in wp-includes/post -functions.php */4744 /** This action is documented in wp-includes/post.php */ 4745 4745 do_action( 'deleted_post', $post_id ); 4746 4746 -
trunk/src/wp-includes/taxonomy.php
r35718 r35725 1475 1475 wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS ); 1476 1476 1477 /** This filter is documented in wp-includes/taxonomy -functions.php */1477 /** This filter is documented in wp-includes/taxonomy.php */ 1478 1478 return apply_filters( 'get_terms', array(), $taxonomies, $args ); 1479 1479 } … … 1552 1552 } 1553 1553 1554 /** This filter is documented in wp-includes/taxonomy -functions.php */1554 /** This filter is documented in wp-includes/taxonomy.php */ 1555 1555 return apply_filters( 'get_terms', $terms, $taxonomies, $args ); 1556 1556 } … … 2661 2661 $slug = sanitize_title($slug, $term_id); 2662 2662 2663 /** This action is documented in wp-includes/taxonomy -functions.php */2663 /** This action is documented in wp-includes/taxonomy.php */ 2664 2664 do_action( 'edit_terms', $term_id, $taxonomy ); 2665 2665 $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) ); 2666 2666 2667 /** This action is documented in wp-includes/taxonomy -functions.php */2667 /** This action is documented in wp-includes/taxonomy.php */ 2668 2668 do_action( 'edited_terms', $term_id, $taxonomy ); 2669 2669 } … … 3305 3305 do_action( "edit_$taxonomy", $term_id, $tt_id ); 3306 3306 3307 /** This filter is documented in wp-includes/taxonomy -functions.php */3307 /** This filter is documented in wp-includes/taxonomy.php */ 3308 3308 $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id ); 3309 3309 … … 3863 3863 $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 ) ); 3864 3864 3865 /** This action is documented in wp-includes/taxonomy -functions.php */3865 /** This action is documented in wp-includes/taxonomy.php */ 3866 3866 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3867 3867 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3868 3868 3869 /** This action is documented in wp-includes/taxonomy -functions.php */3869 /** This action is documented in wp-includes/taxonomy.php */ 3870 3870 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3871 3871 } … … 3890 3890 $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) ); 3891 3891 3892 /** This action is documented in wp-includes/taxonomy -functions.php */3892 /** This action is documented in wp-includes/taxonomy.php */ 3893 3893 do_action( 'edit_term_taxonomy', $term, $taxonomy->name ); 3894 3894 $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) ); 3895 3895 3896 /** This action is documented in wp-includes/taxonomy -functions.php */3896 /** This action is documented in wp-includes/taxonomy.php */ 3897 3897 do_action( 'edited_term_taxonomy', $term, $taxonomy->name ); 3898 3898 } … … 4600 4600 if ( empty( $object_id ) ) { 4601 4601 4602 /** This filter is documented in wp-includes/taxonomy -functions.php */4602 /** This filter is documented in wp-includes/taxonomy.php */ 4603 4603 return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type ); 4604 4604 } -
trunk/src/wp-includes/user.php
r35718 r35725 1035 1035 if ( $prefixed ) { 1036 1036 1037 /** This filter is documented in wp-includes/post -functions.php */1037 /** This filter is documented in wp-includes/post.php */ 1038 1038 $value = apply_filters( "edit_{$field}", $value, $user_id ); 1039 1039 } else { … … 1059 1059 } elseif ( 'db' == $context ) { 1060 1060 if ( $prefixed ) { 1061 /** This filter is documented in wp-includes/post -functions.php */1061 /** This filter is documented in wp-includes/post.php */ 1062 1062 $value = apply_filters( "pre_{$field}", $value ); 1063 1063 } else { … … 1079 1079 if ( $prefixed ) { 1080 1080 1081 /** This filter is documented in wp-includes/post -functions.php */1081 /** This filter is documented in wp-includes/post.php */ 1082 1082 $value = apply_filters( $field, $value, $user_id, $context ); 1083 1083 } else { -
trunk/src/wp-includes/widgets.php
r35718 r35725 619 619 $sidebars_widgets = wp_get_sidebars_widgets(); 620 620 if ( empty( $wp_registered_sidebars[ $index ] ) || empty( $sidebars_widgets[ $index ] ) || ! is_array( $sidebars_widgets[ $index ] ) ) { 621 /** This action is documented in wp-includes/widget -functions.php */621 /** This action is documented in wp-includes/widget.php */ 622 622 do_action( 'dynamic_sidebar_before', $index, false ); 623 /** This action is documented in wp-includes/widget -functions.php */623 /** This action is documented in wp-includes/widget.php */ 624 624 do_action( 'dynamic_sidebar_after', $index, false ); 625 /** This filter is documented in wp-includes/widget -functions.php */625 /** This filter is documented in wp-includes/widget.php */ 626 626 return apply_filters( 'dynamic_sidebar_has_widgets', false, $index ); 627 627 }
Note: See TracChangeset
for help on using the changeset viewer.