Opened 9 years ago
Closed 9 years ago
#28947 closed defect (bug) (fixed)
Updating translations... Footer out of place.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | needs-patch |
Focuses: | Cc: |
Description
See screenshot.
Attachments (3)
Change History (17)
#3
@
9 years ago
Looking at the source code and there seems to be one closing div too much:
Line | |
---|---|
1 | <div class="wrap"> |
2 | <h2>Update Translations</h2> |
3 | <div class="update-messages lp-show-latest"> |
4 | <h4>Updating translations for Twenty Twelve (cs_CZ)…</h4> |
5 | <p>Downloading translation from <span class="code">https://global.wordpress.org/builds/themes/twentytwelve/1.2/cs_CZ.zip</span>…</p> |
6 | <p>Unpacking the update…</p> |
7 | <p>Installing the latest version…</p> |
8 | <p>Translation updated successfully.</p> |
9 | </div> |
10 | <script type="text/javascript"> |
11 | (function( wp ) { |
12 | if ( wp && wp.updates.decrementCount ) { |
13 | wp.updates.decrementCount( "translation" ); |
14 | } |
15 | })( window.wp ); |
16 | </script> |
17 | <p><a href="http://build.wp.dev/wp-admin/update-core.php" title="Go to WordPress Updates page" target="_parent">Return to WordPress Updates</a></p> |
18 | </div> |
19 | </div> |
20 | <div class="clear"></div></div><!-- wpbody-content --> |
21 | <div class="clear"></div></div><!-- wpbody --> |
22 | <div class="clear"></div></div><!-- wpcontent --> |
#4
@
9 years ago
- Keywords has-patch reporter-feedback added; needs-patch removed
Thanks ocean90 ;)
Attached 28947.diff removes the footer that outputs a </div>
Language_Pack_Upgrader_Skin
class is used only in the updater.
mike@mike:~/Sites/wordpress-git$ grep -r Language_Pack_Upgrader_Skin src src/wp-admin/includes/class-wp-upgrader-skins.php:class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin { src/wp-admin/includes/class-wp-upgrader.php: $skin = new Language_Pack_Upgrader_Skin( array(src/wp-admin/update-core.php: $upgrader = new Language_Pack_Upgrader( new Language_Pack_Upgrader_Skin( compact( 'url', 'nonce', 'title', 'context' ) ) );
#5
@
9 years ago
- Owner set to ocean90
- Resolution set to fixed
- Status changed from new to closed
In 29313:
#6
@
9 years ago
- Keywords reporter-feedback removed
- Resolution fixed deleted
- Status changed from closed to reopened
I'm still having this problem in the latest trunk.
#8
@
9 years ago
- Keywords needs-patch added; has-patch removed
Ah, in all other places the footer is *inside* #wpwrap. Here it's outside #wpwrap and a direct child of the body.
#10
@
9 years ago
Fixed for me https://youtu.be/b6Sxu2dylMc
Please could you describe your test case?
#11
@
9 years ago
- Keywords needs-patch removed
- Resolution set to fixed
- Status changed from reopened to closed
Hm, maybe I did something wrong... I tried it again, without updating trunk and it seems to work fine. Maybe I updated the translations differently, I will reopen if I stumble upon this again...
I also have two scrollbars when plugins and translations are updated, but I'll make another ticket of that.
#12
@
9 years ago
- Keywords needs-patch added
- Resolution fixed deleted
- Status changed from closed to reopened
When updating a plugin and translations are updated too you have another stray closing div tag.
Source snippet of the iframe:
<p>The update process is starting. This process may take a while on some hosts, so please be patient.</p> <p>Enabling Maintenance mode…</p> <h4>Updating Plugin WordPress Importer (1/1) <span class="spinner waiting-1"></span></h4> <script type="text/javascript">jQuery('.waiting-1').css("display", "inline-block");</script> <div class="update-messages hide-if-js" id="progress-1"> <p> Downloading update from <span class="code">https://downloads.wordpress.org/plugin/wordpress-importer.0.6.1.zip</span>…<br /> Unpacking the update…<br /> Installing the latest version…<br /> Removing the old version of the plugin…<br /> Plugin updated successfully.<br /> </p> </div> <div class="updated"> <p>WordPress Importer updated successfully. <a onclick="jQuery('#progress-1').toggle();jQuery('span', this).toggle(); return false;" href="#" class="hide-if-no-js"><span>Show Details</span><span class="hidden">Hide Details</span>.</a></p> </div> <script type="text/javascript">jQuery('.waiting-1').hide();</script> <script type="text/javascript"> if ( window.postMessage && JSON ) { window.parent.postMessage( JSON.stringify( { action: "decrementUpdateCount", upgradeType: "plugin" } ), window.location.protocol + "//" + window.location.hostname ); } </script> <p>Disabling Maintenance mode…</p> <p>Some of your translations need updating. Sit tight for a few more seconds while we update them as well.</p> <div class="update-messages lp-show-latest"> <h4>Updating translations for WordPress (ar)…</h4> <p>Downloading translation from <span class="code">https://global.wordpress.org/builds/core/4.0-alpha/ar.zip</span>…</p> <p>Unpacking the update…</p> <p>Installing the latest version…</p> <p>Translation updated successfully.</p> </div> <script type="text/javascript"> (function( wp ) { if ( wp && wp.updates.decrementCount ) { wp.updates.decrementCount( "translation" ); } })( window.wp ); </script> </div> // Not needed <p>All updates have been completed.</p> <p><a href="http://develop.wp.dev/wp-admin/plugins.php" title="Go to plugins page" target="_parent">Return to Plugins page</a> | <a href="http://develop.wp.dev/wp-admin/update-core.php" title="Go to WordPress Updates page" target="_parent">Return to WordPress Updates</a></p>
#13
@
9 years ago
Another one: When updating a single plugin you get:
<div class="wrap"> <h2>Update Plugin</h2> <p>Downloading update from <span class="code">https://downloads.wordpress.org/plugin/debug-bar.0.8.1.zip</span>…</p> <p>Unpacking the update…</p> <p>Installing the latest version…</p> <p>Removing the old version of the plugin…</p> <p>Plugin updated successfully.</p> <iframe style="border:0;overflow:hidden" width="100%" height="170px" src="update.php?action=activate-plugin&networkwide&plugin=debug-bar%2Fdebug-bar.php&_wpnonce=01efc775fa"></iframe> <script type="text/javascript"> (function( wp ) { if ( wp && wp.updates.decrementCount ) { wp.updates.decrementCount( "plugin" ); } })( window.wp ); </script> <p><a href="http://develop.wp.dev/wp-admin/plugins.php" title="Go to plugins page" target="_parent">Return to Plugins page</a></p> <p>Some of your translations need updating. Sit tight for a few more seconds while we update them as well.</p> <div class="update-messages lp-show-latest"> <h4>Updating translations for WordPress (ar)…</h4> <p>Downloading translation from <span class="code">https://global.wordpress.org/builds/core/4.0-alpha/ar.zip</span>…</p> <p>Unpacking the update…</p> <p>Installing the latest version…</p> <div class="lp-error"> <p>Invalid Data provided.</p> </div> <p>Translation update failed.</p> </div> </div> </div> <div class="clear"></div></div><!-- wpbody-content --> <div class="clear"></div></div><!-- wpbody --> <div class="clear"></div></div><!-- wpcontent -->
Reproduced with downloading every language from http://api.wordpress.org/translations/core/1.0/?version=4.0
It's enough to have more than YOUR_SCREEN_HEIGHT divided with 55px
position: fixed
, but it stick there as it should.But it doesn't work with small height http://i.imgur.com/jIbCNTf.png