Paul Schreiber
Forum Replies Created
-
You could release a 3.6.43 with everything properly tagged in SVN, and the problem should be resolved.
Forum: Themes and Templates
In reply to: [Bravada] Lazy loading images not visibleYour code should be able to work, even with concatenation.
See https://stackoverflow.com/questions/3588102/jquery-load-not-working-on-my-image for more info on your bug.
Here’s the fix:
function cryoutAnimateLazyImages() { jQuery( "#content img[loading='lazy']" ).on('load', function(){ jQuery(this).addClass('animate-lazy'); }).each(function() { if (this.complete) { jQuery(this).trigger('load'); } }); }Also: your code doesn’t confirm to WordPress’ JavaScript coding standards. The spacing and indentation is incorrect and inconsistent. I recommend making eslint (with the appropriate rule set) part of your build process.
- This reply was modified 5 years, 3 months ago by Paul Schreiber.
- This reply was modified 5 years, 3 months ago by Paul Schreiber.
Forum: Themes and Templates
In reply to: [Bravada] Lazy loading images not visibleThis is still not working for me.
See https://olivoilrecords.com/archives/ for an example.
(You can load https://olivoilrecords.com/archives/?concat-js=0 to disable JS concatenation, but that has no effect.)
cryoutAnimateLazyImages() fires, but jQuery(this).addClass(‘animate-lazy’); does not.
Forum: Plugins
In reply to: [Contact Form 7] False positive (ReCAPTCHA marking message as spam)Ah, I had the logic inverted. I thought this was like SpamAssassin, where a low score is good.
In my case, not submitting a token at all resulted in a “spam” score. It would be good to differentiate between the case where no token is submitted and a token is submitted but the score is still 0.
The WPCF7 + recaptcha is very particular about load order, and this fails if you set the ReCAPTCHA JS to async defer, like in Google’s docs.
I hit this error with 14.0.4. Debugging the network inspector, I found that HTTP POST requests to https://mysite.com/wp-json/yoast/v1/indexation/posts were 404ing. Fyrther, https://mysite.com/wp-json/ was 404ing.
I inspected .htaccess, and found that W3TC had overwritten the rewrite rules. I disabled W3TC and replaced .htaccess with the default values. I was able to rebuild the index.
Forum: Plugins
In reply to: [Co-Authors Plus] Will this be updated to work with 5.3?CoAP works fine with 5.3. What specific problem(s) are you having? “No longer works” is not actionable.
Forum: Plugins
In reply to: [Autoptimize] JS errors for logged-in usersCloudfront doesn’t do any unifying/minification — it just reproduces what’s on my server.
Autoptimize does have an option to exclude jQuery from minification. I tried that, but it didn’t work — jQuery still got loaded too late.
Forum: Alpha/Beta/RC
In reply to: 3.5 RC3 New media uploader doesn't work with Google mod_pagespeedThe work-around “ModPagespeedDisallow */wp-admin/*” worked for me, too.
Same problem here.
Firebug shows this error;
SyntaxError: malformed Unicode character escape sequence [Break On This Error] __p+='\n\undefined\undefined<style type="text/css" id="'+ load-s...Ymwu.js (line 61, col 5)I can’t find that snippet anywhere.
Forum: Plugins
In reply to: [WP Minify] [Plugin: WP Minify] & in URL causes 400 Bad RequestThe WordPress forums are clobbering the HTML entities here. Presumable jrevillini wants you to replace & amp; [no space] with &
Forum: Fixing WordPress
In reply to: Using get_posts() function to load the three most commented postsOrder by comment_count:
$args = array( 'numberposts' => 3, 'orderby' => 'comment_count', 'order' => 'DESC' );Forum: Fixing WordPress
In reply to: Featured Image missing in 3.2digitalawakening’s suggestion #2 solved this for me.