Ticket #25658: 25658-no-braces.diff
| File 25658-no-braces.diff, 31.7 KB (added by , 13 years ago) |
|---|
-
src/wp-admin/admin-ajax.php
38 38 send_nosniff_header(); 39 39 nocache_headers(); 40 40 41 / /duplicate_hook41 /** This action is documented in wp-admin/admin.php */ 42 42 do_action( 'admin_init' ); 43 43 44 44 $core_actions_get = array( -
src/wp-admin/admin-post.php
23 23 24 24 nocache_headers(); 25 25 26 / /duplicate_hook26 /** This action is documented in wp-admin/admin.php */ 27 27 do_action( 'admin_init' ); 28 28 29 29 $action = 'admin_post'; -
src/wp-admin/custom-background.php
386 386 $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); 387 387 set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) ); 388 388 389 / /duplicate_hook389 /** This action is documented in wp-admin/custom-header.php */ 390 390 do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication 391 391 $this->updated = true; 392 392 } … … 412 412 public function wp_set_background_image() { 413 413 if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit; 414 414 $attachment_id = absint($_POST['attachment_id']); 415 / /duplicate_hook415 /** This filter is documented in wp-admin/includes/media.php */ 416 416 $sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) )); 417 417 $size = 'thumbnail'; 418 418 if ( in_array( $_POST['size'], $sizes ) ) -
src/wp-admin/custom-header.php
712 712 if ( ! $image || is_wp_error( $image ) ) 713 713 wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); 714 714 715 / /duplicate_hook715 /** This filter is documented in wp-admin/custom-header.php */ 716 716 $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication 717 717 718 718 $url = str_replace(basename($url), basename($image), $url); … … 854 854 if ( ! $cropped || is_wp_error( $cropped ) ) 855 855 wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) ); 856 856 857 / /duplicate_hook857 /** This filter is documented in wp-admin/custom-header.php */ 858 858 $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication 859 859 860 860 $parent = get_post($attachment_id); … … 887 887 // cleanup 888 888 $medium = str_replace( basename( $original ), 'midsize-' . basename( $original ), $original ); 889 889 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 */ 891 897 @unlink( apply_filters( 'wp_delete_file', $medium ) ); 892 898 } 893 899 894 900 if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) { 895 / /duplicate_hook901 /** This filter is documented in wp-admin/custom-header.php */ 896 902 @unlink( apply_filters( 'wp_delete_file', $original ) ); 897 903 } 898 904 -
src/wp-admin/edit-form-advanced.php
239 239 * @param WP_Post $post Post object. 240 240 */ 241 241 do_action( 'do_meta_boxes', $post_type, 'normal', $post ); 242 / /duplicate_hook242 /** This action is documented in wp-admin/edit-form-advanced.php */ 243 243 do_action( 'do_meta_boxes', $post_type, 'advanced', $post ); 244 / /duplicate_hook244 /** This action is documented in wp-admin/edit-form-advanced.php */ 245 245 do_action( 'do_meta_boxes', $post_type, 'side', $post ); 246 246 247 247 add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); -
src/wp-admin/edit-link-form.php
33 33 do_action('add_meta_boxes', 'link', $link); 34 34 do_action('add_meta_boxes_link', $link); 35 35 36 /** This action is documented in wp-admin/edit-form-advanced.php */ 36 37 do_action('do_meta_boxes', 'link', 'normal', $link); 38 /** This action is documented in wp-admin/edit-form-advanced.php */ 37 39 do_action('do_meta_boxes', 'link', 'advanced', $link); 40 /** This action is documented in wp-admin/edit-form-advanced.php */ 38 41 do_action('do_meta_boxes', 'link', 'side', $link); 39 42 40 43 add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); -
src/wp-admin/includes/ajax-actions.php
190 190 if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) ) 191 191 wp_die( -1 ); 192 192 193 / /duplicate_hook193 /** This filter is documented in wp-admin/user-new.php */ 194 194 if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) ) 195 195 wp_die( -1 ); 196 196 … … 2002 2002 if ( 'attachment' != $post['post_type'] ) 2003 2003 wp_send_json_error(); 2004 2004 2005 / /duplicate_hook2005 /** This filter is documented in wp-admin/includes/media.php */ 2006 2006 $post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data ); 2007 2007 2008 2008 if ( isset( $post['errors'] ) ) { … … 2105 2105 $html = stripslashes_deep( $_POST['html'] ); 2106 2106 } 2107 2107 2108 / /duplicate_hook2108 /** This filter is documented in wp-admin/includes/media.php */ 2109 2109 $html = apply_filters( 'media_send_to_editor', $html, $id, $attachment ); 2110 2110 2111 2111 wp_send_json_success( $html ); … … 2146 2146 && ( 'audio' == $ext_type || 'video' == $ext_type ) ) 2147 2147 $type = $ext_type; 2148 2148 2149 / /duplicate_hook2149 /** This filter is documented in wp-admin/includes/media.php */ 2150 2150 $html = apply_filters( $type . '_send_to_editor_url', $html, $src, $title ); 2151 2151 2152 2152 wp_send_json_success( $html ); -
src/wp-admin/includes/class-wp-posts-list-table.php
540 540 $level++; 541 541 $find_main_page = (int) $parent->post_parent; 542 542 543 if ( !isset( $parent_name ) ) 543 if ( !isset( $parent_name ) ) { 544 /** This filter is documented in wp-includes/post-template.php */ 544 545 $parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID ); 546 } 545 547 } 546 548 } 547 549 } -
src/wp-admin/includes/dashboard.php
142 142 if ( $update ) 143 143 update_option( 'dashboard_widget_options', $widget_options ); 144 144 145 /** This action is documented in wp-admin/edit-form-advanced.php */ 145 146 do_action('do_meta_boxes', $screen->id, 'normal', ''); 147 /** This action is documented in wp-admin/edit-form-advanced.php */ 146 148 do_action('do_meta_boxes', $screen->id, 'side', ''); 147 149 } 148 150 -
src/wp-admin/includes/export.php
367 367 $is_sticky = is_sticky( $post->ID ) ? 1 : 0; 368 368 ?> 369 369 <item> 370 <?php /** This filter is documented in wp-includes/feed.php */ ?> 370 371 <title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title> 371 372 <link><?php the_permalink_rss() ?></link> 372 373 <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
499 499 if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) { 500 500 // delete only if it's edited image 501 501 if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) { 502 /** This filter is documented in wp-admin/custom-header.php */ 502 503 $delpath = apply_filters('wp_delete_file', $file); 503 504 @unlink($delpath); 504 505 } … … 522 523 if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) { 523 524 // delete only if it's edited image 524 525 if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) { 526 /** This filter is documented in wp-admin/custom-header.php */ 525 527 $delpath = apply_filters( 'wp_delete_file', path_join($parts['dirname'], $meta['sizes'][$default_size]['file']) ); 526 528 @unlink($delpath); 527 529 } … … 722 724 } 723 725 724 726 if ( $delete ) { 727 /** This filter is documented in wp-admin/custom-header.php */ 725 728 $delpath = apply_filters('wp_delete_file', $new_path); 726 729 @unlink( $delpath ); 727 730 } -
src/wp-admin/includes/ms.php
677 677 <th scope="row" colspan="2" class="th-full"> 678 678 <?php 679 679 $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 */ 687 681 ?> 688 682 <a href="<?php echo apply_filters( 'wp_signup_location', $signup_url ); ?>"><?php _e( 'Create a New Site' ); ?></a> 689 683 </th> -
src/wp-admin/includes/nav-menu.php
308 308 if ( ! empty( $item->label ) ) { 309 309 $title = $item->label; 310 310 } elseif ( isset( $item->post_type ) ) { 311 / /duplicate_hook311 /** This filter is documented in wp-includes/post-template.php */ 312 312 $title = apply_filters( 'the_title', $item->post_title, $item->ID ); 313 313 if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title ) 314 314 $title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title ); -
src/wp-admin/includes/post.php
270 270 } 271 271 272 272 $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 */ 273 274 $post_data = apply_filters( 'attachment_fields_to_save', $post_data, $attachment_data ); 274 275 } 275 276 -
src/wp-admin/includes/revision.php
70 70 */ 71 71 $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : ''; 72 72 73 / /duplicate_hook73 /** This filter is documented in wp-admin/includes/revision.php */ 74 74 $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' ); 75 75 76 76 $diff = wp_text_diff( $content_from, $content_to, array( 'show_split_view' => true ) ); -
src/wp-admin/options-writing.php
28 28 '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’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>', 29 29 ) ); 30 30 31 / /duplicate_hook31 /** This filter is documented in wp-admin/options.php */ 32 32 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { 33 33 get_current_screen()->add_help_tab( array( 34 34 'id' => 'options-postemail', … … 131 131 </div> 132 132 133 133 <?php 134 / /duplicate_hook134 /** This filter is documented in wp-admin/options.php */ 135 135 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { 136 136 ?> 137 137 <h3 class="title"><?php _e('Post via e-mail') ?></h3> … … 168 168 <?php } ?> 169 169 170 170 <?php 171 / /duplicate_hook171 /** This filter is documented in wp-admin/options-writing.php */ 172 172 if ( apply_filters( 'enable_update_services_configuration', true ) ) { 173 173 ?> 174 174 <h3 class="title"><?php _e('Update Services') ?></h3> -
src/wp-admin/user-new.php
335 335 ?> 336 336 <p><?php _e('Create a brand new user and add them to this site.'); ?></p> 337 337 <?php 338 / /duplicate_hook338 /** This action is documented in wp-admin/user-new.php */ 339 339 ?> 340 340 <form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>> 341 341 <input name="action" type="hidden" value="createuser" /> … … 427 427 </table> 428 428 429 429 <?php 430 / /duplicate_hook430 /** This action is documented in wp-admin/user-new.php */ 431 431 do_action( 'user_new_form', 'add-new-user' ); 432 432 ?> 433 433 -
src/wp-content/themes/twentyeleven/content-single.php
55 55 <div id="author-info"> 56 56 <div id="author-avatar"> 57 57 <?php 58 / /duplicate_hook58 /** This filter is documented in author.php */ 59 59 echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); 60 60 ?> 61 61 </div><!-- #author-avatar --> -
src/wp-content/themes/twentyeleven/functions.php
528 528 if ( ! $has_url ) 529 529 $has_url = twentyeleven_url_grabber(); 530 530 531 / /duplicate_hook531 /** This filter is documented in wp-includes/link-template.php */ 532 532 return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() ); 533 533 } 534 534 -
src/wp-content/themes/twentyeleven/inc/widgets.php
55 55 ob_start(); 56 56 extract( $args, EXTR_SKIP ); 57 57 58 / /duplicate_hook58 /** This filter is documented in wp-includes/default-widgets.php */ 59 59 $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base); 60 60 61 61 if ( ! isset( $instance['number'] ) ) -
src/wp-content/themes/twentyten/loop-single.php
38 38 <div id="entry-author-info"> 39 39 <div id="author-avatar"> 40 40 <?php 41 / /duplicate_hook41 /** This filter is documented in author.php */ 42 42 echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); 43 43 ?> 44 44 </div><!-- #author-avatar --> -
src/wp-content/themes/twentytwelve/author.php
48 48 <div class="author-info"> 49 49 <div class="author-avatar"> 50 50 <?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 */ 52 58 $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ); 53 59 echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); 54 60 ?> -
src/wp-content/themes/twentytwelve/content.php
50 50 <div class="author-info"> 51 51 <div class="author-avatar"> 52 52 <?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 */ 60 54 $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ); 61 55 echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); 62 56 ?> -
src/wp-includes/canonical.php
296 296 297 297 if ( 'wp-register.php' == basename( $redirect['path'] ) ) { 298 298 if ( is_multisite() ) 299 / /duplicate_hook299 /** This filter is documented in wp-login.php */ 300 300 $redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ); 301 301 else 302 302 $redirect_url = site_url( 'wp-login.php?action=register' ); -
src/wp-includes/class-wp-embed.php
215 215 216 216 // If there was a result, return it 217 217 if ( $html ) { 218 / /duplicate_hook218 /** This filter is documented in wp-includes/class-wp-embed.php */ 219 219 return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID ); 220 220 } 221 221 } -
src/wp-includes/comment.php
1772 1772 $excerpt = str_replace(']]>', ']]>', $excerpt); 1773 1773 $excerpt = wp_html_excerpt($excerpt, 252, '…'); 1774 1774 1775 /** This filter is documented in wp-includes/post-template.php */ 1775 1776 $post_title = apply_filters('the_title', $post->post_title, $post->ID); 1776 1777 $post_title = strip_tags($post_title); 1777 1778 -
src/wp-includes/feed-atom-comments.php
48 48 <title><?php 49 49 if ( !is_singular() ) { 50 50 $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 ); 52 53 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 53 54 } else { 54 55 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); -
src/wp-includes/feed-rdf.php
30 30 <link><?php bloginfo_rss('url') ?></link> 31 31 <description><?php bloginfo_rss('description') ?></description> 32 32 <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 */ ?> 33 34 <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 */ ?> 35 36 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 36 37 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 37 38 <?php -
src/wp-includes/feed-rss2-comments.php
15 15 xmlns:atom="http://www.w3.org/2005/Atom" 16 16 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 17 17 <?php 18 / /duplicate_hook18 /** This action is documented in wp-includes/feed-rss2.php */ 19 19 do_action( 'rss2_ns' ); 20 20 ?> 21 21 … … 41 41 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> 42 42 <description><?php bloginfo_rss("description") ?></description> 43 43 <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 */ ?> 45 45 <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 */ ?> 47 47 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 48 48 <?php 49 49 /** … … 60 60 <title><?php 61 61 if ( !is_singular() ) { 62 62 $title = get_the_title($comment_post->ID); 63 / /duplicate_hook64 $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 ); 65 65 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 66 66 } else { 67 67 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); -
src/wp-includes/general-template.php
1078 1078 foreach ( (array) $results as $result ) { 1079 1079 if ( $result->post_date != '0000-00-00 00:00:00' ) { 1080 1080 $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 */ 1082 1083 $text = strip_tags( apply_filters( 'the_title', $result->post_title, $result->ID ) ); 1083 else1084 } else { 1084 1085 $text = $result->ID; 1086 } 1085 1087 $output .= get_archives_link($url, $text, $format, $before, $after); 1086 1088 } 1087 1089 } … … 1266 1268 if ( $ak_post_titles ) { 1267 1269 foreach ( (array) $ak_post_titles as $ak_post_title ) { 1268 1270 1271 /** This filter is documented in wp-includes/post-template.php */ 1269 1272 $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) ); 1270 1273 1271 1274 if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) -
src/wp-includes/link-template.php
1425 1425 if ( empty( $post->post_title ) ) 1426 1426 $title = $previous ? __( 'Previous Post' ) : __( 'Next Post' ); 1427 1427 1428 /** This filter is documented in wp-includes/post-template.php */ 1428 1429 $title = apply_filters( 'the_title', $title, $post->ID ); 1429 1430 $date = mysql2date( get_option( 'date_format' ), $post->post_date ); 1430 1431 $rel = $previous ? 'prev' : 'next'; -
src/wp-includes/media-template.php
341 341 <# } #>> 342 342 <?php 343 343 344 /** This filter is documented in wp-admin/includes/media.php */ 344 345 $sizes = apply_filters( 'image_size_names_choose', array( 345 346 'thumbnail' => __('Thumbnail'), 346 347 'medium' => __('Medium'), -
src/wp-includes/media.php
1744 1744 1745 1745 if ( $meta && 'image' === $type ) { 1746 1746 $sizes = array(); 1747 /** This filter is documented in wp-admin/includes/media.php */ 1747 1748 $possible_sizes = apply_filters( 'image_size_names_choose', array( 1748 1749 'thumbnail' => __('Thumbnail'), 1749 1750 'medium' => __('Medium'), -
src/wp-includes/nav-menu-template.php
147 147 148 148 $item_output = $args->before; 149 149 $item_output .= '<a'. $attributes .'>'; 150 / /duplicate_hook150 /** This filter is documented in wp-includes/post-template.php */ 151 151 $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after; 152 152 $item_output .= '</a>'; 153 153 $item_output .= $args->after; -
src/wp-includes/post-template.php
1071 1071 if ( '' === $page->post_title ) 1072 1072 $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID ); 1073 1073 1074 /** This filter is documented in wp-includes/post-template.php */ 1074 1075 $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>'; 1075 1076 1076 1077 if ( !empty($show_date) ) { -
src/wp-includes/post.php
4190 4190 // Don't delete the thumb if another attachment uses it 4191 4191 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)) ) { 4192 4192 $thumbfile = str_replace(basename($file), $meta['thumb'], $file); 4193 /** This filter is documented in wp-admin/custom-header.php */ 4193 4194 $thumbfile = apply_filters('wp_delete_file', $thumbfile); 4194 4195 @ unlink( path_join($uploadpath['basedir'], $thumbfile) ); 4195 4196 } … … 4197 4198 4198 4199 // remove intermediate and backup images if there are any 4199 4200 foreach ( $intermediate_sizes as $intermediate ) { 4201 /** This filter is documented in wp-admin/custom-header.php */ 4200 4202 $intermediate_file = apply_filters( 'wp_delete_file', $intermediate['path'] ); 4201 4203 @ unlink( path_join($uploadpath['basedir'], $intermediate_file) ); 4202 4204 } … … 4204 4206 if ( is_array($backup_sizes) ) { 4205 4207 foreach ( $backup_sizes as $size ) { 4206 4208 $del_file = path_join( dirname($meta['file']), $size['file'] ); 4209 /** This filter is documented in wp-admin/custom-header.php */ 4207 4210 $del_file = apply_filters('wp_delete_file', $del_file); 4208 4211 @ unlink( path_join($uploadpath['basedir'], $del_file) ); 4209 4212 } 4210 4213 } 4211 4214 4215 /** This filter is documented in wp-admin/custom-header.php */ 4212 4216 $file = apply_filters('wp_delete_file', $file); 4213 4217 4214 4218 if ( ! empty($file) ) -
src/wp-login.php
619 619 <?php 620 620 if ( get_option( 'users_can_register' ) ) : 621 621 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); 622 / /duplicate_hook622 /** This filter is documented in wp-login.php */ 623 623 echo ' | ' . apply_filters( 'register', $registration_url ); 624 624 endif; 625 625 ?> … … 765 765 login_header( '', $message ); ?> 766 766 </div> 767 767 <?php 768 / /duplicate_hook768 /** This action is documented in wp-login.php */ 769 769 do_action( 'login_footer' ); ?> 770 770 <?php if ( $customize_login ) : ?> 771 771 <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script> … … 869 869 <?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : 870 870 if ( get_option( 'users_can_register' ) ) : 871 871 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ); 872 / /duplicate_hook872 /** This filter is documented in wp-login.php */ 873 873 echo apply_filters( 'register', $registration_url ) . ' | '; 874 874 endif; 875 875 ?> -
src/wp-mail.php
10 10 /** Make sure that the WordPress bootstrap has run before continuing. */ 11 11 require(dirname(__FILE__) . '/wp-load.php'); 12 12 13 /** This filter is documented in wp-admin/options.php */ 13 14 if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) 14 15 wp_die( __( 'This action has been disabled by the administrator.' ) ); 15 16 -
src/wp-signup.php
433 433 <form id="setupform" method="post" action="wp-signup.php"> 434 434 <input type="hidden" name="stage" value="validate-user-signup" /> 435 435 <?php 436 / /duplicate_hook436 /** This action is documented in wp-signup.php */ 437 437 do_action( 'signup_hidden_fields', 'validate-user' ); 438 438 ?> 439 439 <?php show_user_form($user_name, $user_email, $errors); ?> … … 481 481 return false; 482 482 } 483 483 484 / /duplicate_hook484 /** This filter is documented in wp-signup.php */ 485 485 wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); 486 486 487 487 confirm_user_signup($user_name, $user_email); … … 503 503 <p><?php printf( __( 'Check your inbox at <strong>%s</strong> and click the link given.' ), $user_email ); ?></p> 504 504 <p><?php _e( 'If you do not activate your username within two days, you will have to sign up again.' ); ?></p> 505 505 <?php 506 / /duplicate_hook506 /** This action is documented in wp-signup.php */ 507 507 do_action( 'signup_finished' ); 508 508 } 509 509 … … 563 563 <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> 564 564 <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> 565 565 <?php 566 / /duplicate_hook566 /** This action is documented in wp-signup.php */ 567 567 do_action( 'signup_hidden_fields', 'validate-site' ); 568 568 ?> 569 569 <?php show_blog_form($blogname, $blog_title, $errors); ?> … … 605 605 $public = (int) $_POST['blog_public']; 606 606 $meta = array ('lang_id' => 1, 'public' => $public); 607 607 608 / /duplicate_hook608 /** This filter is documented in wp-signup.php */ 609 609 $meta = apply_filters( 'add_signup_meta', $meta ); 610 610 611 611 wpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta); … … 642 642 </ul> 643 643 </p> 644 644 <?php 645 / /duplicate_hook645 /** This action is documented in wp-signup.php */ 646 646 do_action( 'signup_finished' ); 647 647 } 648 648