Make WordPress Core

Changeset 33954


Ignore:
Timestamp:
09/08/2015 10:16:57 PM (9 years ago)
Author:
wonderboymusic
Message:

After [33843], update the location of some files in This filter is documented in docs

Props dimadin.
See #33413.

Location:
trunk/src/wp-includes
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/bookmark.php

    r32527 r33954  
    379379
    380380    if ( 'edit' == $context ) {
    381         /** This filter is documented in wp-includes/post.php */
     381        /** This filter is documented in wp-includes/post-functions.php */
    382382        $value = apply_filters( "edit_$field", $value, $bookmark_id );
    383383
     
    388388        }
    389389    } elseif ( 'db' == $context ) {
    390         /** This filter is documented in wp-includes/post.php */
     390        /** This filter is documented in wp-includes/post-functions.php */
    391391        $value = apply_filters( "pre_$field", $value );
    392392    } else {
    393         /** This filter is documented in wp-includes/post.php */
     393        /** This filter is documented in wp-includes/post-functions.php */
    394394        $value = apply_filters( $field, $value, $bookmark_id, $context );
    395395
  • trunk/src/wp-includes/class-snoopy.php

    r24591 r33954  
    22
    33/**
    4  * Deprecated. Use WP_HTTP (http.php, class-http.php) instead.
     4 * Deprecated. Use WP_HTTP (http.php) instead.
    55 */
    66_deprecated_file( basename( __FILE__ ), '3.0', WPINC . '/http.php' );
  • trunk/src/wp-includes/class-wp-http-curl.php

    r33874 r33954  
    115115        $ssl_verify = isset($r['sslverify']) && $r['sslverify'];
    116116        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 */
    118118            $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify );
    119119        } 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 */
    121121            $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify );
    122122        }
  • trunk/src/wp-includes/comment-functions.php

    r33948 r33954  
    10211021    clean_comment_cache($comment_id);
    10221022
    1023     /** This action is documented in wp-includes/comment.php */
     1023    /** This action is documented in wp-includes/comment-functions.php */
    10241024    do_action( 'wp_set_comment_status', $comment_id, 'delete' );
    10251025
     
    14531453        $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_ID'] );
    14541454    } 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 */
    14561456        $commentdata['user_id'] = apply_filters( 'pre_user_id', $commentdata['user_id'] );
    14571457    }
     
    14651465     */
    14661466    $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 */
    14681468    $commentdata['comment_author'] = apply_filters( 'pre_comment_author_name', $commentdata['comment_author'] );
    14691469    /**
     
    14831483     */
    14841484    $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 */
    14861486    $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 */
    14881488    $commentdata['comment_author_email'] = apply_filters( 'pre_comment_author_email', $commentdata['comment_author_email'] );
    14891489    $commentdata['filtered'] = true;
     
    19001900     */
    19011901    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 */
    19031903    do_action( 'edit_post', $post_id, $post );
    19041904
     
    23822382    $post = get_post($post_id);
    23832383
    2384     /** This filter is documented in wp-includes/comment.php */
     2384    /** This filter is documented in wp-includes/comment-functions.php */
    23852385    $post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );
    23862386    if ( ! in_array( $post->post_type, $post_types ) )
  • trunk/src/wp-includes/cron.php

    r33936 r33954  
    317317            'timeout'   => 0.01,
    318318            '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 */
    320320            'sslverify' => apply_filters( 'https_local_ssl_verify', false )
    321321        )
  • trunk/src/wp-includes/media.php

    r33844 r33954  
    707707
    708708        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 */
    710710            $icon_dir = apply_filters( 'icon_dir', ABSPATH . WPINC . '/images/media' );
    711711
  • trunk/src/wp-includes/meta-functions.php

    r33761 r33954  
    534534    }
    535535
    536     /** This filter is documented in wp-includes/meta.php */
     536    /** This filter is documented in wp-includes/meta-functions.php */
    537537    $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, true );
    538538    if ( null !== $check )
     
    655655        $where[$id_column] = $meta_id;
    656656
    657         /** This action is documented in wp-includes/meta.php */
     657        /** This action is documented in wp-includes/meta-functions.php */
    658658        do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
    659659
    660660        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 */
    662662            do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
    663663        }
     
    671671        wp_cache_delete($object_id, $meta_type . '_meta');
    672672
    673         /** This action is documented in wp-includes/meta.php */
     673        /** This action is documented in wp-includes/meta-functions.php */
    674674        do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
    675675
    676676        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 */
    678678            do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value );
    679679        }
     
    723723        $object_id = $meta->{$column};
    724724
    725         /** This action is documented in wp-includes/meta.php */
     725        /** This action is documented in wp-includes/meta-functions.php */
    726726        do_action( "delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );
    727727
     
    747747        wp_cache_delete($object_id, $meta_type . '_meta');
    748748
    749         /** This action is documented in wp-includes/meta.php */
     749        /** This action is documented in wp-includes/meta-functions.php */
    750750        do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );
    751751
  • trunk/src/wp-includes/post-functions.php

    r33931 r33954  
    20782078    $counts = wp_cache_get( $cache_key, 'counts' );
    20792079    if ( false !== $counts ) {
    2080         /** This filter is documented in wp-includes/post.php */
     2080        /** This filter is documented in wp-includes/post-functions.php */
    20812081        return apply_filters( 'wp_count_posts', $counts, $type, $perm );
    20822082    }
     
    33923392    wp_transition_post_status( 'publish', $old_status, $post );
    33933393
    3394     /** This action is documented in wp-includes/post.php */
     3394    /** This action is documented in wp-includes/post-functions.php */
    33953395    do_action( 'edit_post', $post->ID, $post );
    33963396
    3397     /** This action is documented in wp-includes/post.php */
     3397    /** This action is documented in wp-includes/post-functions.php */
    33983398    do_action( "save_post_{$post->post_type}", $post->ID, $post, true );
    33993399
    3400     /** This action is documented in wp-includes/post.php */
     3400    /** This action is documented in wp-includes/post-functions.php */
    34013401    do_action( 'save_post', $post->ID, $post, true );
    34023402
    3403     /** This action is documented in wp-includes/post.php */
     3403    /** This action is documented in wp-includes/post-functions.php */
    34043404    do_action( 'wp_insert_post', $post->ID, $post, true );
    34053405}
     
    42984298        // Convert to WP_Post instances.
    42994299        $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 */
    43014301        $pages = apply_filters( 'get_pages', $pages, $r );
    43024302        return $pages;
     
    44404440
    44414441    if ( empty($pages) ) {
    4442         /** This filter is documented in wp-includes/post.php */
     4442        /** This filter is documented in wp-includes/post-functions.php */
    44434443        $pages = apply_filters( 'get_pages', array(), $r );
    44444444        return $pages;
     
    46254625        delete_metadata_by_mid( 'post', $mid );
    46264626
    4627     /** This action is documented in wp-includes/post.php */
     4627    /** This action is documented in wp-includes/post-functions.php */
    46284628    do_action( 'delete_post', $post_id );
    46294629    $result = $wpdb->delete( $wpdb->posts, array( 'ID' => $post_id ) );
     
    46314631        return false;
    46324632    }
    4633     /** This action is documented in wp-includes/post.php */
     4633    /** This action is documented in wp-includes/post-functions.php */
    46344634    do_action( 'deleted_post', $post_id );
    46354635
  • trunk/src/wp-includes/taxonomy-functions.php

    r33903 r33954  
    815815    wp_cache_add( $term->term_id, $term, $taxonomy );
    816816
    817     /** This filter is documented in wp-includes/taxonomy.php */
     817    /** This filter is documented in wp-includes/taxonomy-functions.php */
    818818    $term = apply_filters( 'get_term', $term, $taxonomy );
    819819
    820     /** This filter is documented in wp-includes/taxonomy.php */
     820    /** This filter is documented in wp-includes/taxonomy-functions.php */
    821821    $term = apply_filters( "get_$taxonomy", $term, $taxonomy );
    822822
     
    13671367        wp_cache_add( $cache_key, array(), 'terms', DAY_IN_SECONDS );
    13681368
    1369         /** This filter is documented in wp-includes/taxonomy.php */
     1369        /** This filter is documented in wp-includes/taxonomy-functions.php */
    13701370        return apply_filters( 'get_terms', array(), $taxonomies, $args );
    13711371    }
     
    23372337        $slug = sanitize_title($slug, $term_id);
    23382338
    2339         /** This action is documented in wp-includes/taxonomy.php */
     2339        /** This action is documented in wp-includes/taxonomy-functions.php */
    23402340        do_action( 'edit_terms', $term_id, $taxonomy );
    23412341        $wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) );
    23422342
    2343         /** This action is documented in wp-includes/taxonomy.php */
     2343        /** This action is documented in wp-includes/taxonomy-functions.php */
    23442344        do_action( 'edited_terms', $term_id, $taxonomy );
    23452345    }
     
    29772977    do_action( "edit_$taxonomy", $term_id, $tt_id );
    29782978
    2979     /** This filter is documented in wp-includes/taxonomy.php */
     2979    /** This filter is documented in wp-includes/taxonomy-functions.php */
    29802980    $term_id = apply_filters( 'term_id_filter', $term_id, $tt_id );
    29812981
     
    35293529            $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 ) );
    35303530
    3531         /** This action is documented in wp-includes/taxonomy.php */
     3531        /** This action is documented in wp-includes/taxonomy-functions.php */
    35323532        do_action( 'edit_term_taxonomy', $term, $taxonomy->name );
    35333533        $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
    35343534
    3535         /** This action is documented in wp-includes/taxonomy.php */
     3535        /** This action is documented in wp-includes/taxonomy-functions.php */
    35363536        do_action( 'edited_term_taxonomy', $term, $taxonomy->name );
    35373537    }
     
    35563556        $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) );
    35573557
    3558         /** This action is documented in wp-includes/taxonomy.php */
     3558        /** This action is documented in wp-includes/taxonomy-functions.php */
    35593559        do_action( 'edit_term_taxonomy', $term, $taxonomy->name );
    35603560        $wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
    35613561
    3562         /** This action is documented in wp-includes/taxonomy.php */
     3562        /** This action is documented in wp-includes/taxonomy-functions.php */
    35633563        do_action( 'edited_term_taxonomy', $term, $taxonomy->name );
    35643564    }
     
    42314231    if ( empty( $object_id ) ) {
    42324232
    4233         /** This filter is documented in wp-includes/taxonomy.php */
     4233        /** This filter is documented in wp-includes/taxonomy-functions.php */
    42344234        return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
    42354235    }
  • trunk/src/wp-includes/user-functions.php

    r33896 r33954  
    998998        if ( $prefixed ) {
    999999
    1000             /** This filter is documented in wp-includes/post.php */
     1000            /** This filter is documented in wp-includes/post-functions.php */
    10011001            $value = apply_filters( "edit_{$field}", $value, $user_id );
    10021002        } else {
     
    10221022    } elseif ( 'db' == $context ) {
    10231023        if ( $prefixed ) {
    1024             /** This filter is documented in wp-includes/post.php */
     1024            /** This filter is documented in wp-includes/post-functions.php */
    10251025            $value = apply_filters( "pre_{$field}", $value );
    10261026        } else {
     
    10421042        if ( $prefixed ) {
    10431043
    1044             /** This filter is documented in wp-includes/post.php */
     1044            /** This filter is documented in wp-includes/post-functions.php */
    10451045            $value = apply_filters( $field, $value, $user_id, $context );
    10461046        } else {
  • trunk/src/wp-includes/widget-functions.php

    r33871 r33954  
    519519    $sidebars_widgets = wp_get_sidebars_widgets();
    520520    if ( empty( $wp_registered_sidebars[ $index ] ) || empty( $sidebars_widgets[ $index ] ) || ! is_array( $sidebars_widgets[ $index ] ) ) {
    521         /** This action is documented in wp-includes/widgets.php */
     521        /** This action is documented in wp-includes/widget-functions.php */
    522522        do_action( 'dynamic_sidebar_before', $index, false );
    523         /** This action is documented in wp-includes/widgets.php */
     523        /** This action is documented in wp-includes/widget-functions.php */
    524524        do_action( 'dynamic_sidebar_after',  $index, false );
    525         /** This filter is documented in wp-includes/widgets.php */
     525        /** This filter is documented in wp-includes/widget-functions.php */
    526526        return apply_filters( 'dynamic_sidebar_has_widgets', false, $index );
    527527    }
     
    910910 * @global WP_Widget_Factory $wp_widget_factory
    911911 *
    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).
    913913 * @param array  $instance Optional. The widget's instance settings. Default empty array.
    914914 * @param array  $args {
  • trunk/src/wp-includes/widgets/class-wp-nav-menu-widget.php

    r33843 r33954  
    2525            return;
    2626
    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 */
    2828        $instance['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
    2929
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r33951 r33954  
    2222        $d = ! empty( $instance['dropdown'] ) ? '1' : '0';
    2323
    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 */
    2525        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Archives' ) : $instance['title'], $instance, $this->id_base );
    2626
  • trunk/src/wp-includes/widgets/class-wp-widget-calendar.php

    r33843 r33954  
    1919     */
    2020    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 */
    2222        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
    2323
  • trunk/src/wp-includes/widgets/class-wp-widget-categories.php

    r33843 r33954  
    2323        static $first_dropdown = true;
    2424
    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 */
    2626        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Categories' ) : $instance['title'], $instance, $this->id_base );
    2727
  • trunk/src/wp-includes/widgets/class-wp-widget-meta.php

    r33843 r33954  
    2121     */
    2222    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 */
    2424        $title = apply_filters( 'widget_title', empty($instance['title']) ? __( 'Meta' ) : $instance['title'], $instance, $this->id_base );
    2525
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php

    r33843 r33954  
    7474        $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Comments' );
    7575
    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 */
    7777        $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    7878
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php

    r33951 r33954  
    4646        $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Posts' );
    4747
    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 */
    4949        $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    5050
  • trunk/src/wp-includes/widgets/class-wp-widget-rss.php

    r33843 r33954  
    5151            $title = empty($desc) ? __('Unknown Feed') : $desc;
    5252
    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 */
    5454        $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    5555
  • trunk/src/wp-includes/widgets/class-wp-widget-search.php

    r33843 r33954  
    1919     */
    2020    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 */
    2222        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
    2323
  • trunk/src/wp-includes/widgets/class-wp-widget-tag-cloud.php

    r33843 r33954  
    3131        }
    3232
    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 */
    3434        $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    3535
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r33951 r33954  
    2020     */
    2121    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 */
    2323        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
    2424
Note: See TracChangeset for help on using the changeset viewer.