#29054 closed defect (bug) (fixed)
Decrement of translation update count bubbles doesn't work, when updated through iframe
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.0 | Priority: | normal |
| Severity: | normal | Version: | 3.9 |
| Component: | Upgrade/Install | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Source snippet from the iframe:
// ...
<script type="text/javascript">
if ( window.postMessage && JSON ) {
window.parent.postMessage( JSON.stringify( { action: "decrementUpdateCount", upgradeType: "plugin" } ), window.location.protocol + "//" + window.location.hostname );
}
</script>
// ...
<div class="update-messages lp-show-latest">
<h4>Updating translations for WordPress (ar)…</h4>
// ...
</div>
<script type="text/javascript">
(function( wp ) {
if ( wp && wp.updates.decrementCount ) {
wp.updates.decrementCount( "translation" );
}
})( window.wp );
</script>
The second one should use postMessage too.
Related: #17703
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 29357: