mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -40,7 +40,9 @@ if ( is_multisite() ) {
|
||||
}
|
||||
|
||||
wp_enqueue_script( 'post' );
|
||||
$_wp_editor_expand = $_content_editor_dfw = false;
|
||||
|
||||
$_wp_editor_expand = false;
|
||||
$_content_editor_dfw = false;
|
||||
|
||||
/**
|
||||
* Filters whether to enable the 'expand' functionality in the post editor.
|
||||
@@ -106,8 +108,13 @@ if ( ! $permalink ) {
|
||||
|
||||
$messages = array();
|
||||
|
||||
$preview_post_link_html = $scheduled_post_link_html = $view_post_link_html = '';
|
||||
$preview_page_link_html = $scheduled_page_link_html = $view_page_link_html = '';
|
||||
$preview_post_link_html = '';
|
||||
$scheduled_post_link_html = '';
|
||||
$view_post_link_html = '';
|
||||
|
||||
$preview_page_link_html = '';
|
||||
$scheduled_page_link_html = '';
|
||||
$view_page_link_html = '';
|
||||
|
||||
$preview_url = get_preview_post_link( $post );
|
||||
|
||||
@@ -576,7 +583,8 @@ if ( post_type_supports( $post_type, 'editor' ) ) {
|
||||
<?php
|
||||
if ( 'auto-draft' != $post->post_status ) {
|
||||
echo '<span id="last-edit">';
|
||||
if ( $last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) ) ) {
|
||||
$last_user = get_userdata( get_post_meta( $post_ID, '_edit_last', true ) );
|
||||
if ( $last_user ) {
|
||||
/* translators: 1: Name of most recent post author, 2: Post edited date, 3: Post edited time */
|
||||
printf( __( 'Last edited by %1$s on %2$s at %3$s' ), esc_html( $last_user->display_name ), mysql2date( __( 'F j, Y' ), $post->post_modified ), mysql2date( __( 'g:i a' ), $post->post_modified ) );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user