Make WordPress Core

Ticket #33427: 33427.diff

File 33427.diff, 1.3 KB (added by bobbingwide, 9 years ago)

Assign rather than concatenate to $update_actionspreview?

  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    739739                                }
    740740                        } elseif ( current_user_can( 'switch_themes' ) ) {
    741741                                if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
    742                                         $update_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name ) . '</span></a>';
     742                                        $update_actions['preview'] = '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize"><span aria-hidden="true">' . __( 'Live Preview' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Live Preview &#8220;%s&#8221;' ), $name ) . '</span></a>';
    743743                                }
    744744                                $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink"><span aria-hidden="true">' . __( 'Activate' ) . '</span><span class="screen-reader-text">' . sprintf( __( 'Activate &#8220;%s&#8221;' ), $name ) . '</span></a>';
    745745                        }