[wp-trac] [WordPress Trac] #29054: Decrement of translation update count bubbles doesn't work, when updated through iframe
WordPress Trac
noreply at wordpress.org
Tue Jul 29 08:25:08 UTC 2014
#29054: Decrement of translation update count bubbles doesn't work, when updated
through iframe
-----------------------------+-----------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 3.9
Severity: normal | Keywords: needs-patch
Focuses: |
-----------------------------+-----------------------------
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
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29054>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list