Make WordPress Core

Ticket #54188: 54188.2.diff

File 54188.2.diff, 1.2 KB (added by costdev, 3 years ago)

Patch refreshed against trunk.

  • src/wp-admin/css/themes.css

    diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
    index aedecd5b32..ce9ca3ddd3 100644
    a b body.full-overlay-active { 
    18501850
    18511851.install-theme-info .theme-screenshot {
    18521852        margin: 15px 0;
    1853         width: 258px;
    18541853        border: 1px solid #c3c4c7;
     1854        position: relative;
     1855        overflow: hidden;
     1856}
     1857
     1858.install-theme-info .theme-screenshot > img {
     1859        width: 100%;
     1860        height: auto;
     1861        position: absolute;
     1862        left: 0;
     1863        top: 0;
     1864}
     1865
     1866.install-theme-info .theme-screenshot:after {
     1867        content: "";
     1868        display: block;
     1869        padding-top: 66.66666666%;
    18551870}
    18561871
    18571872.install-theme-info .theme-details {
  • src/wp-admin/theme-install.php

    diff --git a/src/wp-admin/theme-install.php b/src/wp-admin/theme-install.php
    index 10aeeb344f..336ed65445 100644
    a b if ( $tab ) { 
    456456                                                ?>
    457457                                        </span>
    458458
    459                                         <img class="theme-screenshot" src="{{ data.screenshot_url }}?ver={{ data.version }}" alt="" />
     459                                        <div class="theme-screenshot">
     460                                                <img src="{{ data.screenshot_url }}" alt="" />
     461                                        </div>
    460462
    461463                                        <div class="theme-details">
    462464                                                <# if ( data.rating ) { #>