Make WordPress Core

Ticket #31858: 31858.patch

File 31858.patch, 4.2 KB (added by ramiy, 9 years ago)
  • wp-admin/edit-form-advanced.php

     
    7878$messages = array();
    7979$messages['post'] = array(
    8080         0 => '', // Unused. Messages start at index 1.
    81          1 => sprintf( __('Post updated. <a href="%s">View post</a>'), esc_url( $permalink ) ),
     81         1 => __('Post updated.') . '<a href="' . esc_url( $permalink ) . '">' . __('View post') . '</a>',
    8282         2 => __('Custom field updated.'),
    8383         3 => __('Custom field deleted.'),
    8484         4 => __('Post updated.'),
    8585        /* translators: %s: date and time of the revision */
    8686         5 => isset($_GET['revision']) ? sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    87          6 => sprintf( __('Post published. <a href="%s">View post</a>'), esc_url( $permalink ) ),
     87         6 => __('Post published.') . '<a href="' . esc_url( $permalink ) . '">' . __('View post') . '</a>',
    8888         7 => __('Post saved.'),
    89          8 => sprintf( __('Post submitted. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
    90          9 => sprintf( __('Post scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview post</a>'),
    91                 /* translators: Publish box date format, see http://php.net/date */
    92                 date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
    93         10 => sprintf( __('Post draft updated. <a target="_blank" href="%s">Preview post</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
     89         8 => __('Post submitted.') . '<a target="_blank" href="' . esc_url( add_query_arg( 'preview', 'true', $permalink ) ) . '">' . __('Preview post') . '</a>',
     90         9 => sprintf( __('Post scheduled for: %1$s.'),
     91                        /* translators: Publish box date format, see http://php.net/date */
     92                        '<strong>' . date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ) . '</strong>' ) . '<a target="_blank" href="' . esc_url( $permalink ) . '">' . __('Preview post') . '</a>',
     93        10 => __('Post draft updated.') . '<a target="_blank" href="' . esc_url( add_query_arg( 'preview', 'true', $permalink ) ) . '">' . __('Preview post') . '</a>',
    9494);
    9595$messages['page'] = array(
    9696         0 => '', // Unused. Messages start at index 1.
    97          1 => sprintf( __('Page updated. <a href="%s">View page</a>'), esc_url( $permalink ) ),
     97         1 => __('Page updated.') . '<a href="' . esc_url( $permalink ) . '">' . __('View page') . '</a>',
    9898         2 => __('Custom field updated.'),
    9999         3 => __('Custom field deleted.'),
    100100         4 => __('Page updated.'),
    101101         5 => isset($_GET['revision']) ? sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    102          6 => sprintf( __('Page published. <a href="%s">View page</a>'), esc_url( $permalink ) ),
     102         6 => __('Page published.') . '<a href="' . esc_url( $permalink ) . '">' . __('View page') . '</a>',
    103103         7 => __('Page saved.'),
    104          8 => sprintf( __('Page submitted. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
    105          9 => sprintf( __('Page scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview page</a>'), date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
    106         10 => sprintf( __('Page draft updated. <a target="_blank" href="%s">Preview page</a>'), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
     104         8 => __('Page submitted.') . '<a target="_blank" href="' . esc_url( add_query_arg( 'preview', 'true', $permalink ) ) . '">' . __('Preview page') . '</a>',
     105         9 => sprintf( __('Page scheduled for: %1$s.'),
     106                        /* translators: Publish box date format, see http://php.net/date */
     107                        '<strong>' . date_i18n( __( 'M j, Y @ H:i' ), strtotime( $post->post_date ) ) . '</strong>' ) . '<a target="_blank" href="' . esc_url( $permalink ) . '">' . __('Preview page') . '</a>',
     108        10 => __('Page draft updated.') . '<a target="_blank" href="' . esc_url( add_query_arg( 'preview', 'true', $permalink ) ) . '">' . __('Preview page') . '</a>',
    107109);
    108110$messages['attachment'] = array_fill( 1, 10, __( 'Media attachment updated.' ) ); // Hack, for now.
    109111