sam2kb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to suggest a change to WP documentation pageThanks for the info
Request URL:https://localhost:81/wp-json/wp/v2/block-renderer/real-media-library/gallery?context=edit&attributes%5Bfid%5D=504&attributes%5Bcolumns%5D=5&attributes%5BimageCrop%5D=true&attributes%5Bcaptions%5D=true&attributes%5BlinkTo%5D=media&attributes%5BlastEditReload%5D=0&post_id=6939&_locale=user Request Method:GET Remote Address:127.0.0.1:81 Status Code: 404 Version:HTTP/1.1
{"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}
If I deactivate the free plugin and then activate a paid one, the code is rendered ok
- This reply was modified 4 years, 9 months ago by sam2kb.
Here’s the screenshot. It’s a post with a folder.
<!-- wp:real-media-library/gallery {"fid":504,"columns":5,"linkTo":"media"} /-->
Forum: Plugins
In reply to: [Easy Facebook Feed] Pull feeds from multiple pagesThanks for adding the changes
There’s a problem though, you need to check and return cached feeds BEFORE you do the “foreach” loop. Otherwise there’s no sense in having it cached.
Also there’s no need to run
implode('', $cachedFeed);
twice, just implode the items before you save them to cache, and then return the results as is.Forum: Plugins
In reply to: [Easy Facebook Feed] Pull feeds from multiple pagesBTW to make things even smoother we need to cache the feeds
$cacheKey = md5('eff'.serialize($shortcode_atts)); if( $cachedFeed = get_transient($cacheKey) ) { // Return cached feed return $cachedFeed; } /* foreach() & krsort() etc. */ // Save to cache for 30 minutes set_transient($cacheKey, $items, 1800); return $items;
- This reply was modified 8 years, 2 months ago by sam2kb.
Forum: Plugins
In reply to: [reCaptcha by BestWebSoft] reCaptcha Not RequiredYou guys must be joking, this PLUGIN DOES NOTHING to stop comment spam since it relies entirely on javascript. Just disable javascript and post anything without entering captcha.
Quick fix: edit line 124 in google-captcha.php and make it look like the code below.
if ( '1' == $gglcptch_options['comments_form'] ) { add_action( 'comment_form_after_fields', 'gglcptch_commentform_display' ); add_action( 'comment_form_logged_in_after', 'gglcptch_commentform_display' ); add_action( 'pre_comment_on_post', 'gglcptch_lostpassword_check' ); }
Ideally we need to use a hook in wp-load.php and check $_POST params to exit the script early and save resources.
Forum: Plugins
In reply to: [reCaptcha by BestWebSoft] reCaptcha Not RequiredSame here, captcha is ignored when javascript is disabled.