WordPress.org

Make WordPress Core

Ticket #11082: 05-04-10_new.patch

File 05-04-10_new.patch, 2.2 KB (added by akhilasuram, 5 years ago)
  • edit-form-advanced.php

     
    3333        sprintf( __('Post submitted. <a target="_blank" href="%s">Preview post</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), 
    3434        // translators: Publish box date format, see http://php.net/date - Same as in meta-boxes.php 
    3535        sprintf( __('Post scheduled for: <b>%1$s</b>. <a target="_blank" href="%2$s">Preview post</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), get_permalink($post_ID) ), 
    36         sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) 
     36        sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), 
     37        __('You attempted to save or publish an empty post. A minimum of title and/or content is required.') 
    3738); 
    3839$messages['page'] = array( 
    3940        '', 
     
    4344        __('Page updated.'), 
    4445        isset($_GET['revision']) ? sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false, 
    4546        sprintf( __('Page published. <a href="%s">View page</a>'), get_permalink($post_ID) ), 
     47        '', 
    4648        sprintf( __('Page submitted. <a target="_blank" href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), 
    4749        // translators: Publish box date format, see http://php.net/date - Same as in meta-boxes.php 
    4850        sprintf( __('Page scheduled for: <b>%1$s</b>. <a target="_blank" href="%2$s">Preview page</a>'), date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), get_permalink($post_ID) ), 
    49         sprintf( __('Page draft updated. <a target="_blank" href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) 
     51        sprintf( __('Page draft updated. <a target="_blank" href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ), 
     52        __('You attempted to save or publish an empty page. A minimum of title and/or content is required.') 
    5053); 
    5154 
    5255$message = false;