programmin
Forum Replies Created
-
Forum: Plugins
In reply to: [Black Studio TinyMCE Widget] Breaking with 4.4Seems it is fixed after fixing another non-related issue with theme.
Forum: Plugins
In reply to: [Youtube Channel Gallery] Breaks site with 500 error sometimesIn case any Youtube-channel-gallery developers are reading this, you should be able to see the problem we’re all getting intermittently by adding a line to wp-includes/http-functions.php:
function wp_remote_get($url, $args = array()) { return new WP_Error('ouch'); $http = _wp_http_get_object(); return $http->get( $url, $args ); }and to wp-includes/http.php
function wp_remote_get($url, $args = array()) { return new WP_Error('ouch'); $http = _wp_http_get_object(); return $http->get( $url, $args ); }to simulate network not working.
By the way it seems to be an odd design decision that you must put your api key in the shortcode!? Why not make it a global option for the plugin and all Youtube displays? Also, whenever the plugin is deactivated everyone would see the shortcode api key. Will this also be fixed in a new release soon?
Forum: Plugins
In reply to: [Photoswipe Masonry Gallery] Setting number of columnsActually it doesn’t honor the image-size you set in the WordPress Gallery-editor’s size setting. It always has the thumbnails 150px width:
.photoswipe_gallery figure {
float: left;
text-align: center;
width: 150px;
padding: 5px;
margin: 0px;
box-sizing: border-box;
}I think what you’re describing is a fairly common bug in wp plugins – http://wordpress.stackexchange.com/questions/188942/why-not-register-shortcodes-if-is-admin-dashboard
They added a workaround for getting galleries from admin-ajax calls, see here for details on the option: https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context?replies=5
Forum: Plugins
In reply to: [Contact Form 7] contact form 7 fails to workI wonder if you’ve tried replacing the wp-content/plugins/contact-form-7 directory with an older version to see if it really was a recent CF7 update that broke it, or (more likely) a change in your hosting or firewall/blocking.
Thanks, I assume this was some line left from testing, that will be removed in future version?
Why would it not just wp_enqueue_style( ‘dashicons’ ) ?
Forum: Plugins
In reply to: [Popups - WordPress Popup] Breaks homepage with css.Well for starters, any site with this particular template.
And in general, any site that doesn’t work with body { height: auto } will be way broken.
Thanks, that’s next best thing to not having the in_admin check I suppose. Btw I think I asked this before, but do you have documentation for all those options in ngg_options in wp_options table?
So do you have to add a filter for ngg_load_frontend_logic in wp-config.php for this to work? It seems this was never tested to work if the code it needs to work with is in a theme – filters that are immediately run aren’t actually filter-able – see for example http://wordpress.stackexchange.com/questions/196305
Unless I’m missing something and there’s a function to call to re-run the add-shortcodes?
Thanks, but this fix is unfortunately not really usable. Since that filter is called initially, and not on an action like ‘init’, it’s not likely to ever actually be filtered.
As you can see in wp-settings.php, the functions.php of themes are called after the plugins have all been called up – and in this case, it has decided whether or not to register shortcodes. I think even other plugins may or may not be able to filter depending on order of loading – unless you can call something within Nextgen to tell it to re-add-shortcodes in this case?
Oops, either I posted the wrong page, or searching for my error turned up this page for some reason… If it persists I will do so, thanks.
As you can see in the answers to this question, plugins that use this is_admin() really shouldn’t need to: http://wordpress.stackexchange.com/questions/188942/why-not-register-shortcodes-if-is-admin-dashboard
I wonder what the specific reason was for this behavior in Nextgen?
I recently got:
Backtrace from fatal error ‘Call to undefined function ninja_forms_register_field()’ at wp-content/plugins/ninja-forms-layout/ninja-form-layout.php 78:I hope this gets fixed – thanks 🙂
Yes, I’m still seeing the same behavior with Nextgen 2.1, even with only Nextgen plugin active, 2014 theme, and “post name” permalinks.
The problem isn’t authentication, and actually is_admin() has nothing to do with whether the user’s admin.
The problem is for WP ajax calls, is_admin() is true (it’s a /wp-admin/ url), and therefore all attempts to get post content with shortcode don’t work.
You can try calling the shortcode register functions, but all the register_hooks are like:
if (!is_admin() && ((!defined('NGG_DISABLE_LEGACY_SHORTCODES') || !NGG_DISABLE_LEGACY_SHORTCODES))) { C_NextGen_Shortcode_Manager::add....Are you going to add any constant or filter to allow shortcodes to be rendered if the page is in admin dashboard?