Ticket #22704: 22704.admin_email_filter.diff
| File 22704.admin_email_filter.diff, 2.0 KB (added by , 12 years ago) |
|---|
-
wp-admin/includes/class-wp-upgrader.php
1486 1486 wp_update_themes(); // Check for Theme updates 1487 1487 wp_update_plugins(); // Check for Plugin updates 1488 1488 1489 self::send_email(); 1489 /** 1490 * Filters boolean value that is checked before sending update summary to site administrator 1491 * 1492 * @since 3.7.0 1493 * 1494 * @param bool Whether or not email should be sent to administrator. 1495 * @param bool|array $core_update False on failure, otherwise the core update offering. 1496 * @param object $theme_updates Object containing theme update properties. 1497 * @param object $plugin_updates Object containing plugin update properties. 1498 */ 1499 if ( apply_filters( 'enable_auto_upgrade_email', true, $core_update, $theme_updates, $plugin_updates ) ) 1500 self::send_email(); 1490 1501 1491 1502 // Clear the lock 1492 1503 delete_site_option( $lock_name ); … … 1568 1579 wp_mail( 1569 1580 get_site_option( 'admin_email' ), 1570 1581 $subject, 1571 implode( "\n", $body ) 1582 implode( "\n", $body ) 1572 1583 ); 1573 1584 } 1574 1585 -
wp-admin/includes/post.php
1052 1052 $post->post_name = $original_name; 1053 1053 unset($post->filter); 1054 1054 1055 return $permalink;1055 return apply_filters( 'get_sample_permalink', $permalink, $title, $name, $id, $post ); 1056 1056 } 1057 1057 1058 1058 /** -
wp-admin/media-new.php
31 31 // Upload File button was clicked 32 32 $id = media_handle_upload( 'async-upload', $post_id ); 33 33 if ( is_wp_error( $id ) ) 34 $location .= '?message=3';34 wp_die( $id ); 35 35 } 36 wp_redirect( admin_url( $location ) );37 exit;38 36 } 39 37 40 38 $title = __('Upload New Media');