Make WordPress Core

Ticket #25658: 25658-no-braces.diff

File 25658-no-braces.diff, 31.7 KB (added by DrewAPicture, 13 years ago)

without braces

  • src/wp-admin/admin-ajax.php

     
    3838send_nosniff_header();
    3939nocache_headers();
    4040
    41 //duplicate_hook
     41/** This action is documented in wp-admin/admin.php */
    4242do_action( 'admin_init' );
    4343
    4444$core_actions_get = array(
  • src/wp-admin/admin-post.php

     
    2323
    2424nocache_headers();
    2525
    26 //duplicate_hook
     26/** This action is documented in wp-admin/admin.php */
    2727do_action( 'admin_init' );
    2828
    2929$action = 'admin_post';
  • src/wp-admin/custom-background.php

     
    386386                $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
    387387                set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) );
    388388
    389                 //duplicate_hook
     389                /** This action is documented in wp-admin/custom-header.php */
    390390                do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication
    391391                $this->updated = true;
    392392        }
     
    412412        public function wp_set_background_image() {
    413413                if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit;
    414414                $attachment_id = absint($_POST['attachment_id']);
    415                 //duplicate_hook
     415                /** This filter is documented in wp-admin/includes/media.php */
    416416                $sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) ));
    417417                $size = 'thumbnail';
    418418                if ( in_array( $_POST['size'], $sizes ) )
  • src/wp-admin/custom-header.php

     
    712712                        if ( ! $image || is_wp_error( $image ) )
    713713                                wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
    714714
    715                         //duplicate_hook
     715                        /** This filter is documented in wp-admin/custom-header.php */
    716716                        $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication
    717717
    718718                        $url = str_replace(basename($url), basename($image), $url);
     
    854854                if ( ! $cropped || is_wp_error( $cropped ) )
    855855                        wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
    856856
    857                 //duplicate_hook
     857                /** This filter is documented in wp-admin/custom-header.php */
    858858                $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication
    859859
    860860                $parent = get_post($attachment_id);
     
    887887                // cleanup
    888888                $medium = str_replace( basename( $original ), 'midsize-' . basename( $original ), $original );
    889889                if ( file_exists( $medium ) ) {
    890                         //duplicate_hook
     890                        /**
     891                         * Filter the path of the file to delete.
     892                         *
     893                         * @since 2.1.0
     894                         *
     895                         * @param string $medium Path to the file to delete.
     896                         */
    891897                        @unlink( apply_filters( 'wp_delete_file', $medium ) );
    892898                }
    893899
    894900                if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) {
    895                         //duplicate_hook
     901                        /** This filter is documented in wp-admin/custom-header.php */
    896902                        @unlink( apply_filters( 'wp_delete_file', $original ) );
    897903                }
    898904
  • src/wp-admin/edit-form-advanced.php

     
    239239 * @param WP_Post $post      Post object.
    240240 */
    241241do_action( 'do_meta_boxes', $post_type, 'normal', $post );
    242 //duplicate_hook
     242/** This action is documented in wp-admin/edit-form-advanced.php */
    243243do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
    244 //duplicate_hook
     244/** This action is documented in wp-admin/edit-form-advanced.php */
    245245do_action( 'do_meta_boxes', $post_type, 'side', $post );
    246246
    247247add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
  • src/wp-admin/edit-link-form.php

     
    3333do_action('add_meta_boxes', 'link', $link);
    3434do_action('add_meta_boxes_link', $link);
    3535
     36/** This action is documented in wp-admin/edit-form-advanced.php */
    3637do_action('do_meta_boxes', 'link', 'normal', $link);
     38/** This action is documented in wp-admin/edit-form-advanced.php */
    3739do_action('do_meta_boxes', 'link', 'advanced', $link);
     40/** This action is documented in wp-admin/edit-form-advanced.php */
    3841do_action('do_meta_boxes', 'link', 'side', $link);
    3942
    4043add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
  • src/wp-admin/includes/ajax-actions.php

     
    190190        if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) )
    191191                wp_die( -1 );
    192192
    193         //duplicate_hook
     193        /** This filter is documented in wp-admin/user-new.php */
    194194        if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) )
    195195                wp_die( -1 );
    196196
     
    20022002        if ( 'attachment' != $post['post_type'] )
    20032003                wp_send_json_error();
    20042004
    2005         //duplicate_hook
     2005        /** This filter is documented in wp-admin/includes/media.php */
    20062006        $post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data );
    20072007
    20082008        if ( isset( $post['errors'] ) ) {
     
    21052105                $html = stripslashes_deep( $_POST['html'] );
    21062106        }
    21072107
    2108         //duplicate_hook
     2108        /** This filter is documented in wp-admin/includes/media.php */
    21092109        $html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );
    21102110
    21112111        wp_send_json_success( $html );
     
    21462146                && ( 'audio' == $ext_type || 'video' == $ext_type ) )
    21472147                        $type = $ext_type;
    21482148
    2149         //duplicate_hook
     2149        /** This filter is documented in wp-admin/includes/media.php */
    21502150        $html = apply_filters( $type . '_send_to_editor_url', $html, $src, $title );
    21512151
    21522152        wp_send_json_success( $html );
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    540540                                                        $level++;
    541541                                                        $find_main_page = (int) $parent->post_parent;
    542542
    543                                                         if ( !isset( $parent_name ) )
     543                                                        if ( !isset( $parent_name ) ) {
     544                                                                /** This filter is documented in wp-includes/post-template.php */
    544545                                                                $parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
     546                                                        }
    545547                                                }
    546548                                        }
    547549                                }
  • src/wp-admin/includes/dashboard.php

     
    142142        if ( $update )
    143143                update_option( 'dashboard_widget_options', $widget_options );
    144144
     145        /** This action is documented in wp-admin/edit-form-advanced.php */
    145146        do_action('do_meta_boxes', $screen->id, 'normal', '');
     147        /** This action is documented in wp-admin/edit-form-advanced.php */
    146148        do_action('do_meta_boxes', $screen->id, 'side', '');
    147149}
    148150
  • src/wp-admin/includes/export.php

     
    367367                $is_sticky = is_sticky( $post->ID ) ? 1 : 0;
    368368?>
    369369        <item>
     370                <?php /** This filter is documented in wp-includes/feed.php */ ?>
    370371                <title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title>
    371372                <link><?php the_permalink_rss() ?></link>
    372373                <pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
  • src/wp-admin/includes/image-edit.php

     
    499499                        if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
    500500                                // delete only if it's edited image
    501501                                if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) {
     502                                        /** This filter is documented in wp-admin/custom-header.php */
    502503                                        $delpath = apply_filters('wp_delete_file', $file);
    503504                                        @unlink($delpath);
    504505                                }
     
    522523                                if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
    523524                                        // delete only if it's edited image
    524525                                        if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) {
     526                                                /** This filter is documented in wp-admin/custom-header.php */
    525527                                                $delpath = apply_filters( 'wp_delete_file', path_join($parts['dirname'], $meta['sizes'][$default_size]['file']) );
    526528                                                @unlink($delpath);
    527529                                        }
     
    722724        }
    723725
    724726        if ( $delete ) {
     727                /** This filter is documented in wp-admin/custom-header.php */
    725728                $delpath = apply_filters('wp_delete_file', $new_path);
    726729                @unlink( $delpath );
    727730        }
  • src/wp-admin/includes/ms.php

     
    677677                        <th scope="row" colspan="2" class="th-full">
    678678                                <?php
    679679                                $signup_url = network_site_url( 'wp-signup.php' );
    680                                 /**
    681                                  * Filter the site signup URL.
    682                                  *
    683                                  * @since MU
    684                                  *
    685                                  * @param string $signup_url The site signup URL.
    686                                  */
     680                                /** This filter is documented in wp-login.php */
    687681                                ?>
    688682                                <a href="<?php echo apply_filters( 'wp_signup_location', $signup_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
    689683                        </th>
  • src/wp-admin/includes/nav-menu.php

     
    308308                if ( ! empty( $item->label ) ) {
    309309                        $title = $item->label;
    310310                } elseif ( isset( $item->post_type ) ) {
    311                         //duplicate_hook
     311                        /** This filter is documented in wp-includes/post-template.php */
    312312                        $title = apply_filters( 'the_title', $item->post_title, $item->ID );
    313313                        if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title )
    314314                                $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title );
  • src/wp-admin/includes/post.php

     
    270270                }
    271271
    272272                $attachment_data = isset( $post_data['attachments'][ $post_ID ] ) ? $post_data['attachments'][ $post_ID ] : array();
     273                /** This filter is documented in wp-admin/includes/media.php */
    273274                $post_data = apply_filters( 'attachment_fields_to_save', $post_data, $attachment_data );
    274275        }
    275276
  • src/wp-admin/includes/revision.php

     
    7070                 */
    7171                $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : '';
    7272
    73                 //duplicate_hook
     73                /** This filter is documented in wp-admin/includes/revision.php */
    7474                $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' );
    7575
    7676                $diff = wp_text_diff( $content_from, $content_to, array( 'show_split_view' => true ) );
  • src/wp-admin/options-writing.php

     
    2828        'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you&#8217;ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
    2929) );
    3030
    31 //duplicate_hook
     31/** This filter is documented in wp-admin/options.php */
    3232if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    3333        get_current_screen()->add_help_tab( array(
    3434                'id'      => 'options-postemail',
     
    131131</div>
    132132
    133133<?php
    134 //duplicate_hook
     134/** This filter is documented in wp-admin/options.php */
    135135if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    136136?>
    137137<h3 class="title"><?php _e('Post via e-mail') ?></h3>
     
    168168<?php } ?>
    169169
    170170<?php
    171 //duplicate_hook
     171/** This filter is documented in wp-admin/options-writing.php */
    172172if ( apply_filters( 'enable_update_services_configuration', true ) ) {
    173173?>
    174174<h3 class="title"><?php _e('Update Services') ?></h3>
  • src/wp-admin/user-new.php

     
    335335?>
    336336<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
    337337<?php
    338 //duplicate_hook
     338/** This action is documented in wp-admin/user-new.php */
    339339?>
    340340<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
    341341<input name="action" type="hidden" value="createuser" />
     
    427427</table>
    428428
    429429<?php
    430 //duplicate_hook
     430/** This action is documented in wp-admin/user-new.php */
    431431do_action( 'user_new_form', 'add-new-user' );
    432432?>
    433433
  • src/wp-content/themes/twentyeleven/content-single.php

     
    5555                <div id="author-info">
    5656                        <div id="author-avatar">
    5757                                <?php
    58                                 //duplicate_hook
     58                                /** This filter is documented in author.php */
    5959                                echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) );
    6060                                ?>
    6161                        </div><!-- #author-avatar -->
  • src/wp-content/themes/twentyeleven/functions.php

     
    528528        if ( ! $has_url )
    529529                $has_url = twentyeleven_url_grabber();
    530530
    531         //duplicate_hook
     531        /** This filter is documented in wp-includes/link-template.php */
    532532        return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
    533533}
    534534
  • src/wp-content/themes/twentyeleven/inc/widgets.php

     
    5555                ob_start();
    5656                extract( $args, EXTR_SKIP );
    5757
    58                 //duplicate_hook
     58                /** This filter is documented in wp-includes/default-widgets.php */
    5959                $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base);
    6060
    6161                if ( ! isset( $instance['number'] ) )
  • src/wp-content/themes/twentyten/loop-single.php

     
    3838                                        <div id="entry-author-info">
    3939                                                <div id="author-avatar">
    4040                                                        <?php
    41                                                         //duplicate_hook
     41                                                        /** This filter is documented in author.php */
    4242                                                        echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
    4343                                                        ?>
    4444                                                </div><!-- #author-avatar -->
  • src/wp-content/themes/twentytwelve/author.php

     
    4848                        <div class="author-info">
    4949                                <div class="author-avatar">
    5050                                        <?php
    51                                         //duplicate_hook
     51                                        /**
     52                                         * Filter the author bio avatar size.
     53                                         *
     54                                         * @since Twenty Twelve 1.0
     55                                         *
     56                                         * @param int $size The height and width of the avatar in pixels.
     57                                         */
    5258                                        $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
    5359                                        echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
    5460                                        ?>
  • src/wp-content/themes/twentytwelve/content.php

     
    5050                                <div class="author-info">
    5151                                        <div class="author-avatar">
    5252                                                <?php
    53                                                 /**
    54                                                  * Filter the author bio avatar size.
    55                                                  *
    56                                                  * @since Twenty Twelve 1.0
    57                                                  *
    58                                                  * @param int $size The height and width of the avatar in pixels.
    59                                                  */
     53                                                /** This filter is documented in author.php */
    6054                                                $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
    6155                                                echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
    6256                                                ?>
  • src/wp-includes/canonical.php

     
    296296
    297297                if ( 'wp-register.php' == basename( $redirect['path'] ) ) {
    298298                        if ( is_multisite() )
    299                                 //duplicate_hook
     299                                /** This filter is documented in wp-login.php */
    300300                                $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
    301301                        else
    302302                                $redirect_url = site_url( 'wp-login.php?action=register' );
  • src/wp-includes/class-wp-embed.php

     
    215215
    216216                        // If there was a result, return it
    217217                        if ( $html ) {
    218                                 //duplicate_hook
     218                                /** This filter is documented in wp-includes/class-wp-embed.php */
    219219                                return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
    220220                        }
    221221                }
  • src/wp-includes/comment.php

     
    17721772        $excerpt = str_replace(']]>', ']]&gt;', $excerpt);
    17731773        $excerpt = wp_html_excerpt($excerpt, 252, '&#8230;');
    17741774
     1775        /** This filter is documented in wp-includes/post-template.php */
    17751776        $post_title = apply_filters('the_title', $post->post_title, $post->ID);
    17761777        $post_title = strip_tags($post_title);
    17771778
  • src/wp-includes/feed-atom-comments.php

     
    4848                <title><?php
    4949                        if ( !is_singular() ) {
    5050                                $title = get_the_title($comment_post->ID);
    51                                 $title = apply_filters('the_title_rss', $title);
     51                                /** This filter is documented in wp-includes/feed.php */
     52                                $title = apply_filters( 'the_title_rss', $title );
    5253                                printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
    5354                        } else {
    5455                                printf(ent2ncr(__('By: %s')), get_comment_author_rss());
  • src/wp-includes/feed-rdf.php

     
    3030        <link><?php bloginfo_rss('url') ?></link>
    3131        <description><?php bloginfo_rss('description') ?></description>
    3232        <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
     33        <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
    3334        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    34         <?php //duplicate_hook ?>
     35        <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
    3536        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    3637        <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    3738        <?php
  • src/wp-includes/feed-rss2-comments.php

     
    1515        xmlns:atom="http://www.w3.org/2005/Atom"
    1616        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    1717        <?php
    18         //duplicate_hook
     18        /** This action is documented in wp-includes/feed-rss2.php */
    1919        do_action( 'rss2_ns' );
    2020        ?>
    2121
     
    4141        <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    4242        <description><?php bloginfo_rss("description") ?></description>
    4343        <lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
    44         <?php //duplicate_hook ?>
     44        <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
    4545        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
    46         <?php //duplicate_hook ?>
     46        <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
    4747        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    4848        <?php
    4949        /**
     
    6060                <title><?php
    6161                        if ( !is_singular() ) {
    6262                                $title = get_the_title($comment_post->ID);
    63                                 //duplicate_hook
    64                                 $title = apply_filters('the_title_rss', $title);
     63                                /** This filter is documented in wp-includes/feed.php */
     64                                $title = apply_filters( 'the_title_rss', $title );
    6565                                printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
    6666                        } else {
    6767                                printf(ent2ncr(__('By: %s')), get_comment_author_rss());
  • src/wp-includes/general-template.php

     
    10781078                        foreach ( (array) $results as $result ) {
    10791079                                if ( $result->post_date != '0000-00-00 00:00:00' ) {
    10801080                                        $url  = get_permalink( $result );
    1081                                         if ( $result->post_title )
     1081                                        if ( $result->post_title ) {
     1082                                                /** This filter is documented in wp-includes/post-template.php */
    10821083                                                $text = strip_tags( apply_filters( 'the_title', $result->post_title, $result->ID ) );
    1083                                         else
     1084                                        } else {
    10841085                                                $text = $result->ID;
     1086                                        }
    10851087                                        $output .= get_archives_link($url, $text, $format, $before, $after);
    10861088                                }
    10871089                        }
     
    12661268        if ( $ak_post_titles ) {
    12671269                foreach ( (array) $ak_post_titles as $ak_post_title ) {
    12681270
     1271                                /** This filter is documented in wp-includes/post-template.php */
    12691272                                $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) );
    12701273
    12711274                                if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
  • src/wp-includes/link-template.php

     
    14251425                if ( empty( $post->post_title ) )
    14261426                        $title = $previous ? __( 'Previous Post' ) : __( 'Next Post' );
    14271427
     1428                /** This filter is documented in wp-includes/post-template.php */
    14281429                $title = apply_filters( 'the_title', $title, $post->ID );
    14291430                $date = mysql2date( get_option( 'date_format' ), $post->post_date );
    14301431                $rel = $previous ? 'prev' : 'next';
  • src/wp-includes/media-template.php

     
    341341                                        <# } #>>
    342342                                        <?php
    343343
     344                                        /** This filter is documented in wp-admin/includes/media.php */
    344345                                        $sizes = apply_filters( 'image_size_names_choose', array(
    345346                                                'thumbnail' => __('Thumbnail'),
    346347                                                'medium'    => __('Medium'),
  • src/wp-includes/media.php

     
    17441744
    17451745        if ( $meta && 'image' === $type ) {
    17461746                $sizes = array();
     1747                /** This filter is documented in wp-admin/includes/media.php */
    17471748                $possible_sizes = apply_filters( 'image_size_names_choose', array(
    17481749                        'thumbnail' => __('Thumbnail'),
    17491750                        'medium'    => __('Medium'),
  • src/wp-includes/nav-menu-template.php

     
    147147
    148148                $item_output = $args->before;
    149149                $item_output .= '<a'. $attributes .'>';
    150                 //duplicate_hook
     150                /** This filter is documented in wp-includes/post-template.php */
    151151                $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
    152152                $item_output .= '</a>';
    153153                $item_output .= $args->after;
  • src/wp-includes/post-template.php

     
    10711071                if ( '' === $page->post_title )
    10721072                        $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID );
    10731073
     1074                /** This filter is documented in wp-includes/post-template.php */
    10741075                $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
    10751076
    10761077                if ( !empty($show_date) ) {
  • src/wp-includes/post.php

     
    41904190                // Don't delete the thumb if another attachment uses it
    41914191                if (! $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attachment_metadata' AND meta_value LIKE %s AND post_id <> %d", '%' . $meta['thumb'] . '%', $post_id)) ) {
    41924192                        $thumbfile = str_replace(basename($file), $meta['thumb'], $file);
     4193                        /** This filter is documented in wp-admin/custom-header.php */
    41934194                        $thumbfile = apply_filters('wp_delete_file', $thumbfile);
    41944195                        @ unlink( path_join($uploadpath['basedir'], $thumbfile) );
    41954196                }
     
    41974198
    41984199        // remove intermediate and backup images if there are any
    41994200        foreach ( $intermediate_sizes as $intermediate ) {
     4201                /** This filter is documented in wp-admin/custom-header.php */
    42004202                $intermediate_file = apply_filters( 'wp_delete_file', $intermediate['path'] );
    42014203                @ unlink( path_join($uploadpath['basedir'], $intermediate_file) );
    42024204        }
     
    42044206        if ( is_array($backup_sizes) ) {
    42054207                foreach ( $backup_sizes as $size ) {
    42064208                        $del_file = path_join( dirname($meta['file']), $size['file'] );
     4209                        /** This filter is documented in wp-admin/custom-header.php */
    42074210                        $del_file = apply_filters('wp_delete_file', $del_file);
    42084211                        @ unlink( path_join($uploadpath['basedir'], $del_file) );
    42094212                }
    42104213        }
    42114214
     4215        /** This filter is documented in wp-admin/custom-header.php */
    42124216        $file = apply_filters('wp_delete_file', $file);
    42134217
    42144218        if ( ! empty($file) )
  • src/wp-login.php

     
    619619<?php
    620620if ( get_option( 'users_can_register' ) ) :
    621621        $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
    622         //duplicate_hook
     622        /** This filter is documented in wp-login.php */
    623623        echo ' | ' . apply_filters( 'register', $registration_url );
    624624endif;
    625625?>
     
    765765                        login_header( '', $message ); ?>
    766766                        </div>
    767767                        <?php
    768                         //duplicate_hook
     768                        /** This action is documented in wp-login.php */
    769769                        do_action( 'login_footer' ); ?>
    770770                        <?php if ( $customize_login ) : ?>
    771771                                <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
     
    869869<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
    870870        if ( get_option( 'users_can_register' ) ) :
    871871                $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
    872                 //duplicate_hook
     872                /** This filter is documented in wp-login.php */
    873873                echo apply_filters( 'register', $registration_url ) . ' | ';
    874874        endif;
    875875        ?>
  • src/wp-mail.php

     
    1010/** Make sure that the WordPress bootstrap has run before continuing. */
    1111require(dirname(__FILE__) . '/wp-load.php');
    1212
     13/** This filter is documented in wp-admin/options.php */
    1314if ( ! apply_filters( 'enable_post_by_email_configuration', true ) )
    1415        wp_die( __( 'This action has been disabled by the administrator.' ) );
    1516
  • src/wp-signup.php

     
    433433        <form id="setupform" method="post" action="wp-signup.php">
    434434                <input type="hidden" name="stage" value="validate-user-signup" />
    435435                <?php
    436                 //duplicate_hook
     436                /** This action is documented in wp-signup.php */
    437437                do_action( 'signup_hidden_fields', 'validate-user' );
    438438                ?>
    439439                <?php show_user_form($user_name, $user_email, $errors); ?>
     
    481481                return false;
    482482        }
    483483
    484         //duplicate_hook
     484        /** This filter is documented in wp-signup.php */
    485485        wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) );
    486486
    487487        confirm_user_signup($user_name, $user_email);
     
    503503        <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email ); ?></p>
    504504        <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p>
    505505        <?php
    506         //duplicate_hook
     506        /** This action is documented in wp-signup.php */
    507507        do_action( 'signup_finished' );
    508508}
    509509
     
    563563                <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
    564564                <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
    565565                <?php
    566                 //duplicate_hook
     566                /** This action is documented in wp-signup.php */
    567567                do_action( 'signup_hidden_fields', 'validate-site' );
    568568                ?>
    569569                <?php show_blog_form($blogname, $blog_title, $errors); ?>
     
    605605        $public = (int) $_POST['blog_public'];
    606606        $meta = array ('lang_id' => 1, 'public' => $public);
    607607
    608         //duplicate_hook
     608        /** This filter is documented in wp-signup.php */
    609609        $meta = apply_filters( 'add_signup_meta', $meta );
    610610
    611611        wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta);
     
    642642                </ul>
    643643        </p>
    644644        <?php
    645         //duplicate_hook
     645        /** This action is documented in wp-signup.php */
    646646        do_action( 'signup_finished' );
    647647}
    648648