Edgar Pfandler
Forum Replies Created
-
Forum: Plugins
In reply to: [Friendly Captcha for WordPress] Ultimate Member settings not workingAny news to this? Because the frontend login didn’t work even if the ultimate member login option is not checked! In this version the friendly captcha is useless!!
We are using v3
Yes, I was afraid of that, and it’s an issue that hasn’t gotten through to all developers yet. Not to mention that it shouldn’t be
@importfor performance reasons anyway.But thank you for your quick answers, that’s unfortunately not a matter of course for the WordPress support forums.
A small hint I have for all those who face the same problem, if you do not know which plugins use
@importfor fonts. For example, if you use a cache plugin like W3 Total Cache, you can choose “Process” in the Minify options under CSS@import. This will also cache the resource loaded via@importand no further request will be made. In addition, you should then preload the cache so that no user has to create the cache and thus again loads an@importresource.Thanks, and ⭐️⭐️⭐️⭐️⭐️ from me
Regnalf
Thx for your fast reply!!! And thanks for that extra info.
Thanks for keeping on top of this. Maybe it helps that I use the German language settings?
No, because the filter isn’t called at all!
Yes, that’s working, but don’t you think this should be a solution for all who needs this? Because, all other hooks to create a custom filter are working without modify your ‘init_variables’ filter.
Or is there another reason why you need it to be on ‘plugins_loaded’? This could prevent further support calls, for other who fall into this!
Yes i solved the issue, but i changed the source code from the plugin!!!!
If you don’t change it too, i have to fix it by every update!!So please fix:
add_filter( 'plugins_loaded', array( &$this, 'init_variables' ), 99999 );to
add_filter( 'after_setup_theme', array( &$this, 'init_variables' ), 99999 );What does this filter have to do if i want a frontend filter that a user can choose from?
As far i’ve figured it out is i need the
add_filter( 'um_members_directory_filter_fields', ...
to register a new meta field. (Hook wont fire)Set the type of the field with
add_filter( 'um_members_directory_filter_types', ...
(Hook works)Declare the options to choose from with
add_filter( 'um_search_fields', ...
(Did fire, but have no registered field, cause first hook not work)Do finaly the filtering:
add_filter( 'um_query_args_{{$field_name}}__filter_meta', ...
(Could not trigger because field ist not registered)Am i miss something?
I think i found the issue! You call the
add_filter( 'plugins_loaded', array( &$this, 'init_variables' ), 99999 );
in class-member-directory, that loads before my function.php could fire!After change it to:
add_filter( 'after_setup_theme', array( &$this, 'init_variables' ), 99999 );
the hook works!!! So please change your filter!add_filter('wpfc_ajax_post', 'my_wpfc_ajax_post', 10, 2); function my_wpfc_ajax_post ($item, $post) { ... modify $item, try to add extra name info ... return $item; }If this is a general issue it should be officially solved, not everyone finding their own solution! And the “&” sign is not a country-specific sign and could be used everywhere in a event title!
As i wrote i tried the hooks inside wp-fullcalender but they didn’t change anything!
i want to hook into this one
$items[] = apply_filters('wpfc_ajax_post', $item, $post);but it the hook isn’t called!
- This reply was modified 4 years, 2 months ago by Edgar Pfandler.
Forum: Fixing WordPress
In reply to: WordPress hacked – High User IDThanks for the tips, I’ve already gone through these as well.
Since the site is still under development, I am using an under construction function of my theme that actually does not allow access to the site without logging in to this under construction page via bypass password or over /wp-admin.
So there is not much attack surface if you want to try it via input fields. Regarding the Under Construction page, I have already contacted the support of the theme manufacturer.
I have now also enabled WordFence, which I wanted to do first for the release.
Furthermore I have read the access logs and found the following interesting lines:
185.59.157.57 22/Oct/2021:10:22:52 +0200 POST /wp-login.php HTTP/1.1 http://dev.sitename.com/wp-login.php?redirect_to=http%3A%2F%2Fdev.sitename.com%2Fwp-admin%2F&reauth=1 185.59.157.57 22/Oct/2021:10:31:20 +0200 POST /wp-login.php HTTP/1.1 http://dev.sitename.com/wp-login.php?redirect_to=http%3A%2F%2Fdev.sitename.com%2Fwp-admin%2F&reauth=1 185.59.157.57 22/Oct/2021:10:32:37 +0200 POST /wp-login.php HTTP/1.1 http://dev.sitename.com/wp-login.php 185.59.157.57 22/Oct/2021:10:32:44 +0200 POST /wp-admin/admin-ajax.php?_fs_blog_admin=true HTTP/1.1 http://dev.sitename.com/wp-admin/ 185.59.157.57 22/Oct/2021:10:32:44 +0200 POST /wp-admin/admin-ajax.php?_fs_blog_admin=true HTTP/1.1 http://dev.sitename.com/wp-admin/ 185.59.157.57 22/Oct/2021:10:32:44 +0200 POST /wp-admin/admin-ajax.php?_fs_blog_admin=true HTTP/1.1 http://dev.sitename.com/wp-admin/ 185.59.157.57 22/Oct/2021:10:33:00 +0200 POST /wp-admin/admin-ajax.php HTTP/1.1 http://dev.sitename.com/wp-admin/post.php?post=105&action=editCould this be a problem related to admin-ajax?
I’ve found the issue, i used the
setlocale(LC_ALL, 'de_DE');for some locale php conversion, but i needed only for time. So i changed it toLC_TIME. Now the messages could be dissmissed!!!