HTML showing inside sales summary dashboard widget. Anyone seen this before?

I've never seen this before. Does it happen to you everywhere or just in
that one site?
On Sunday, October 11, 2015, Andrew Munro [email protected] wrote:
HTML showing inside sales summary dashboard widget. Anyone seen this
before?[image: screen shot 2015-10-12 at 1 12 30 pm]
https://cloud.githubusercontent.com/assets/52581/10419943/01550dca-70e3-11e5-95ee-e5da4d231d26.png—
Reply to this email directly or view it on GitHub
https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3900
.
@pippinsplugins totally missed this. Only sites that have no purchases I believe. Log in to the RCP site (I used Chrome) and wait for the heartbeat. It should change from $0.00 values to what you see above.
I still can't make it happen . .
That's odd. I see the same issue in Firefox, Safari and Chrome. It takes a few seconds for it to change.
Just tested this again and still cannot replicate it . . .
@pippinsplugins It took a while, over 5-10minutes, but logged into RCP site in Chrome (+ on new laptop) and it eventually changed. Maybe leave the dashboard open in Chrome and wait a bit longer.
and don't forget to click your heels together 3 times
It's been sitting for 15 . . . no HTML.
Still all good: https://cloudup.com/cegi--01zWU
Hmm you testing the RCP site? I see no recent purchases in your screenshot
Just replicated on @wordmaid's laptop also
@pippinsplugins I'll try and replicate it again on a live site. I have seen it before somewhere else, just can't remember where. It's entirely possible it's limited to the RCP site in some way.
@pippinsplugins can't replicate on live site anymore, or locally. Guess it's only limited to RCP site now. Feel free to close.
I just replicated this! No idea how but I saw it.
I tried so hard to replicate this last night. Nothing.
This is the new white whale.
Get your harpoons ready
There is no default <span class="currency"> around the currency is there? Didn't see one in any of the filters, and it can be replicated by mocking that + the heartbeat:
<?php
add_filter( 'edd_usd_currency_filter_before', function( $cur ) {
return '<span class="currency">' . $cur . '</span>';
});
?>
<span class="test"></span>
<script>
(function($) {
$( '.test' ).text( '<?php echo html_entity_decode( edd_currency_filter( edd_format_amount( 0 ) ), ENT_COMPAT, 'UTF-8' ); ?>' );
} (jQuery) );
</script>
Prints:
<span class="currency">$0</span>
Found where this is originating from. It's actually from themedd: https://github.com/restrictcontentpro/rcp-site-child/blob/master/includes/edd-functions.php#L929
Next step is finding out why it's displaying the span intermittently.
@sunnyratilal I think you're right. It's probably the silly function that uses the currency filter which I'm using on the front-end of the child theme (not specific to themedd). And of course the dashboard widget is using that filter also, doh. We should just add a ! is_admin() check and be on our way. Sunny harpooned it I think.
nice @sunnyratilal
As this is not an EDD specific issue are we good to close this issue?
Yes I think so.
Most helpful comment
I just replicated this! No idea how but I saw it.