matt_fw
Forum Replies Created
-
Forum: Plugins
In reply to: [Max Mega Menu] Bug – Block type names must contain a namespace prefixBy the way, thank you for your support and please excuse my terse reply. Unfortuantely, I have very little time and need to get to the point π
Forum: Plugins
In reply to: [Max Mega Menu] Bug – Block type names must contain a namespace prefixThe block is registered with an invalid name in
wp-content/plugins/megamenu/integration/block/location/block.php, note the__DIR__ . /buildline:function maxmegamenu_location_block_init() { register_block_type( __DIR__ . '/build', array( 'attributes' => array( 'location' => array( 'type' => 'string' ) ), 'render_callback' => 'maxmegamenu_render_callback', ) ); $locations = array_merge( array( "" => __('Select a location', 'megamenu') ), get_registered_nav_menus() ); wp_localize_script( 'maxmegamenu-location-editor-script', 'max_mega_menu_locations', $locations ); }You use
__DIR__/buildas the block name. It evaluates to something like/var/www/acme.com/wp-content/plugins/megamenu/integration/block/location/build, which is invalid, it should be<vendor>/<block>. Here are examples of block names used by other plugins:- core/archives
- woocommerce/all-reviews
- woocommerce/featured-category
- yoast-seo/siblings
WP_Block_Type_Registry::register()requires block names to match regex'/^[a-z0-9-]+\/[a-z0-9-]+$/'Forum: Plugins
In reply to: [Max Mega Menu] Deprecated jQuery functionsThanks for the quick reply. The site is under development and access is password-protected. We don’t run jqMigrate in production. However, I can list location of these calls:
jQuery.resize()in maxmegamenu.js:plugin.init = function() { ... /* line 724 */ $(window).resize(function() { plugin.checkWidth(); }); $menu.triggerHandler("after_mega_menu_init"); };jQuery.unbind()maxmegamenu.js/* line 494 */ plugin.unbindAllEvents = function() { $("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, .mega-indicator", menu).off().unbind(); };jQuery.isFunction()maxmegamenu-pro / public.js/* Line 33 */ if ( ! $.isFunction($.fn.hoverIntent) ) { return; }Forum: Plugins
In reply to: [Popups for Divi] Popups for Divi removes other click handlers@rohit Thank you for the reply, it’s great to see updates and to know that you are working on the solution. I appreciate the effort to provide a workaround, but please allow me to point out why it’s not a good solution.
First, some users might click on buttons right after a page is visible (especially power users). User experience will be inconsistent, for some users the workaround is going to work, for some, it won’t.
Divi popup event handlers might not have been run yet after 1000 ms – it heavily depends o a particular page. The proposed workaround would assign event handlers only for them to be possibly removed after a while.
Lastly, users – even if they’re developers – might have no control over when event handlers are attached if the event handlers are attached by other plugins/themes (in my case – Divi itself).
Forum: Plugins
In reply to: [Popups for Divi] Compatibillity with WordPress version 6.1.1It seems to work fine on my WP 6.1 – but I make only light use of it.
I have exactly the same question. I understand that profile is something that is intended for other users to see, but why there’s an “Edit Profile” option? What’s the purpose of it and how does it differ from the purpose of the Account page?
Can I easily disable the “Edit profile”? I find it confusing.
Forum: Plugins
In reply to: [WooCommerce] When is `wp_wc_category_lookup` table regenerated?According to https://github.com/woocommerce/woocommerce-admin/pull/2253 this is triggered only during install, on upgrade on on forced regeneration.
Actually, you call wp_cache_flush() in every function.
Great job, I didn’t expect so fast response π Any idea when next version of the plugin will be released?
- This reply was modified 7 years, 11 months ago by matt_fw. Reason: Marking as solved
Forum: Plugins
In reply to: [WP Bannerize] PHP Fatal errorThe plugin incorrectly assumes that presence of X-Requested-With header implies AJAX request – which is not true. To fix the error replace the line 22 in main.php:
if ( @isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) ) {
with
if ( @isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') {