Ticket #31605: action-omnibus-1.diff
File action-omnibus-1.diff, 6.2 KB (added by , 10 years ago) |
---|
-
wp-includes/pluggable.php
570 570 * @since 2.5.0 571 571 * 572 572 * @param string $username User login. 573 * @param WP_Error $user The WP_Error object 573 574 */ 574 do_action( 'wp_login_failed', $username );575 do_action( 'wp_login_failed', $username, $user ); 575 576 } 576 577 577 578 return $user; … … 1504 1505 * 1505 1506 * @param string $message_headers Headers for the comment notification email. 1506 1507 * @param int $comment_id Comment ID. 1508 * @param int $post_id Post ID. 1509 * @param int $blog_id Blog ID. 1507 1510 */ 1508 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment_id );1511 $message_headers = apply_filters( 'comment_notification_headers', $message_headers, $comment_id, $post->ID, get_current_blog_id() ); 1509 1512 1510 1513 foreach ( $emails as $email ) { 1511 1514 @wp_mail( $email, wp_specialchars_decode( $subject ), $notify_message, $message_headers ); -
wp-includes/media.php
1017 1017 return ''; 1018 1018 } 1019 1019 1020 /** 1021 * Filter the post gallery attachments, to allow custom sorting not possible in the get_children() query. 1022 * 1023 * @since 4.2 1024 * 1025 * @param array $attachments The list of attachments, an array of objects 1026 * @param string $attr Attributes to the shortcode 1027 */ 1028 $attachments = apply_filters( 'post_gallery_attachments', $attachments, $attr ); 1029 1020 1030 if ( is_feed() ) { 1021 1031 $output = "\n"; 1022 1032 foreach ( $attachments as $att_id => $attachment ) { -
wp-includes/functions.php
527 527 } 528 528 } 529 529 530 /** 531 * Filter the list of enclosure links to check. 532 * 533 * @since 4.2 534 * 535 * @param array $post_links The array of links. 536 * @param int $post_ID Post ID. 537 */ 538 $post_links = apply_filters( 'do_enclose_links', $post_links, $post_ID ); 539 530 540 foreach ( (array) $post_links as $url ) { 531 541 if ( $url != '' && !$wpdb->get_var( $wpdb->prepare( "SELECT post_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = 'enclosure' AND meta_value LIKE %s", $post_ID, $wpdb->esc_like( $url ) . '%' ) ) ) { 532 542 … … 1791 1801 } 1792 1802 } 1793 1803 1804 /** 1805 * Filter the upload basedir. 1806 * 1807 * @since 4.2 1808 * 1809 * @param string $dir The base directory. 1810 */ 1811 $dir = apply_filters( 'upload_basedir', $dir ); 1812 /** 1813 * Filter the upload base URL. 1814 * 1815 * @since 4.2 1816 * 1817 * @param string $url The base URL. 1818 */ 1819 $url = apply_filters( 'upload_baseurl', $url ); 1820 1794 1821 $basedir = $dir; 1795 1822 $baseurl = $url; 1796 1823 -
wp-admin/upload.php
82 82 <div class="error hide-if-js"> 83 83 <p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p> 84 84 </div> 85 <?php 86 /** 87 * Fires when the media grid view is rendered. 88 * 89 * @since 4.2 90 */ 91 do_action( 'media-library-ui' ); 92 ?> 85 93 </div> 86 94 <?php 87 95 include( ABSPATH . 'wp-admin/admin-footer.php' ); … … 262 270 263 271 if ( !empty($message) ) { ?> 264 272 <div id="message" class="updated"><p><?php echo $message; ?></p></div> 265 <?php } ?> 273 <?php } 274 /** 275 * Fires when the media grid view is rendered. 276 * 277 * @since 4.2 278 */ 279 do_action('media-library-ui'); // WPCOM 280 ?> 266 281 267 282 <form id="posts-filter" method="get"> 268 283 -
wp-admin/revision.php
86 86 if ( ! $redirect && empty( $post->post_type ) ) 87 87 $redirect = 'edit.php'; 88 88 89 /** 90 * Filter the revision redirect URL. 91 * 92 * @since 4.2.0 93 * 94 * @param string $redirect The destination URL. 95 */ 96 $redirect = apply_filters('revision_redirect', $redirect); 97 89 98 if ( ! empty( $redirect ) ) { 90 99 wp_redirect( $redirect ); 91 100 exit; -
wp-admin/includes/update.php
222 222 } 223 223 224 224 $msg = sprintf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); 225 225 226 226 if ( current_user_can('update_core') ) { 227 227 $cur = get_preferred_from_update_core(); 228 228 … … 230 230 $msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>'; 231 231 } 232 232 233 /** 234 * Filter the update right now message. 235 * 236 * @since 4.2 237 * 238 * @param string $msg Complete message string. 239 * @param string $theme_name Theme name. 240 */ 241 $msg = apply_filters( 'update_right_now_message', $msg, $theme_name ); 242 233 243 echo "<p id='wp-version-message'>$msg</p>"; 234 244 } 235 245 -
wp-admin/includes/ajax-actions.php
1815 1815 if ( isset($_POST['delete_widget']) && $_POST['delete_widget'] ) { 1816 1816 $sidebars[$sidebar_id] = $sidebar; 1817 1817 wp_set_sidebars_widgets($sidebars); 1818 /** 1819 * Fires after a widget is deleted. 1820 * 1821 * @since 4.2 1822 * 1823 * @param $id_base Base ID of the removed widget. 1824 */ 1825 do_action( 'widget_removed', $id_base ); 1818 1826 echo "deleted:$widget_id"; 1819 1827 wp_die(); 1820 1828 } 1821 1829 1822 if ( !empty($_POST['add_new']) ) 1830 if ( !empty($_POST['add_new']) ) { 1831 /** 1832 * Fires after a widget is added. 1833 * 1834 * @since 4.2 1835 * 1836 * @param $id_base Base ID of the removed widget. 1837 */ 1838 do_action( 'widget_added', $id_base ); 1823 1839 wp_die(); 1840 } 1824 1841 1825 1842 if ( $form = $wp_registered_widget_controls[$widget_id] ) 1826 1843 call_user_func_array( $form['callback'], $form['params'] );