net
Forum Replies Created
-
Forum: Plugins
In reply to: [My Eyes Are Up Here] Not working on WordPress 4.7.4Still not working with 1.1.9.
Doing the same as before: click “Edit hotspots”, manually add hotspots,
click “Finish adding hotspots”, it says it is re-cropping and finishes,
but it simply ignores hotspots when cropping image.Don’t see errors in Console nor in PHP error log.
Tried on two different WordPress installations and it’s the same.
Hotspots are being saved and visible in admin panel, but plugin ignores
them when generating thumbs.Forum: Plugins
In reply to: [Require Post Category] Doesn’t workGreat, many thanks for your help and awesome plugin.
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workFound it in functions.php, thanks.
We were removing jquery-migrate.js:
https://isabelcastillo.com/remove-jquery-migrate-script-wordpressAre you using some older jQuery functions?
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workconsole.log(jQuery('#publish')); Object { 0: <input#publish.button.button-primary.button-large>, length: 1, context: HTMLDocument → post.php, selector: "#publish" } undefined
console.log(jQuery('#publish').data('events')); undefined undefined
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workHere is the code for our Publish button:
<input name="save" class="button button-primary button-large" id="publish" value="Ажурира?" type="submit">
Forum: Plugins
In reply to: [Require Post Category] Doesn’t work$(‘#publish’).data(‘events’) is undefined and that is the reason for error.
I see you are checking ($(‘#save-post’).data(‘events’) != null), why not having the same check for $(‘#publish’).data(‘events’)?
Interesting is that plugin works even with this error?
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workSeeing the same 1.12.4.
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workPlugin is working now, but still seeing in console after page loads:
TypeError: $(...).data(...) is undefined in require-post-category.js:11:32
That’s:
var publish_click_events = $('#publish').data('events').click;
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workNoticed that it works inline if add_action(‘admin_footer’, ‘rpc_admin_footer_post_func’); is used.
But using this or my first patch still seeing in Console:
TypeError: $(...).data(...) is undefined
for
var publish_click_events = $('#publish').data('events').click;
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workJosh, the problem is that jQuery is still not loaded. See:
https://wordpress.stackexchange.com/questions/53021/how-can-i-include-javascript-that-use-jquery-on-admin-sideI did try with:
function my_enqueue($hook) { if( 'post.php' != $hook ) return; wp_enqueue_script( 'my_custom_script', plugins_url('/myscript.js', __FILE__), array('jquery') ); } add_action( 'admin_enqueue_scripts', 'my_enqueue' );
and then it works fine with your JavaScript.
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workAnd without this patch, it simply doesn’t do a thing.
Forum: Plugins
In reply to: [Require Post Category] Doesn’t workNot that I am aware of.
But what I proposed is standard wrapping:
https://stackoverflow.com/questions/2937227/what-does-function-jquery-meanForum: Plugins
In reply to: [WP Media Category Management] Speed up searchingHi Jan,
Beside optimisation, not really sure if we need those two at all:
(wp_posts.ID LIKE '%some image%') OR
(wp_posts.guid LIKE'%some image%') OR
Regards,
IvanForum: Plugins
In reply to: [Autoptimize] Slowing down the websiteFound the cause.
Using WP Super Cache plugin and having “Clear all cache files when a post or page is published or updated” option enabled.
On update it deletes the whole directory “/wp-content/cache”.
Any workaround?
Forum: Plugins
In reply to: [Autoptimize] Slowing down the websiteEvery time any page is updated on website, it deletes all cache from /wp-content/cache/autoptimize directory. Is there a way to avoid this?