Title: squarestar's Replies | WordPress.org

---

# squarestar

  [  ](https://wordpress.org/support/users/squarestar/)

 *   [Profile](https://wordpress.org/support/users/squarestar/)
 *   [Topics Started](https://wordpress.org/support/users/squarestar/topics/)
 *   [Replies Created](https://wordpress.org/support/users/squarestar/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/squarestar/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/squarestar/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/squarestar/engagements/)
 *   [Favorites](https://wordpress.org/support/users/squarestar/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/squarestar/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/squarestar/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Membership] Unified renewal date](https://wordpress.org/support/topic/unified-renewal-date/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/unified-renewal-date/#post-18685249)
 * Thanks – What I mean is: Can I set an expiry date of 31st of December without
   specifying the year, so that renewals are required from the 1st of January each
   year? I see that it is not possible in the access duration section, so I’m thinking
   the answer is no…
 * Would I need to create new memberships for each year, ending on the 31st?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Favorites] Custom markup Breaking entire site please fix](https://wordpress.org/support/topic/custom-markup-breaking-entire-site-please-fix/)
 *  [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/custom-markup-breaking-entire-site-please-fix/#post-18500934)
 * The cause is un-escaped inputs in the code. I have submitted a bug report here:
   [https://wordpress.org/support/topic/bug-settings-inputs-not-escaped-causes-malformed-html-on-the-frontend/](https://wordpress.org/support/topic/bug-settings-inputs-not-escaped-causes-malformed-html-on-the-frontend/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Remote Users Sync] Login fails](https://wordpress.org/support/topic/login-fails-12/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/login-fails-12/#post-17356767)
 * No worries 🙂 It’s a great plugin – thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Remote Users Sync] Login fails](https://wordpress.org/support/topic/login-fails-12/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/login-fails-12/#post-17356706)
 * Yep, my bad.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Remote Users Sync] Login fails](https://wordpress.org/support/topic/login-fails-12/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/login-fails-12/#post-17356678)
 * After adding some debugging code to the plugin I finally discovered that the 
   reason login was failing was that I had the “Force Login Redirects & Logout Everywhere”
   setting checked on only the destination site.
 * As I wasn’t using Safari or iOS I didn’t realise this would matter, but maybe
   it’s actually because the 2 sites weren’t set to the same value?
 * Anyway, problem solved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Remote Users Sync] Allow requests through custom process](https://wordpress.org/support/topic/allow-requests-through-custom-process/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/allow-requests-through-custom-process/#post-17053423)
 * Actually I answered my own question by logging the $_POST array and finding an
   element I can check for.
 * Thanks for the plugin 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP 2FA - Two-factor authentication for WordPress] Email template tokens not being replaced](https://wordpress.org/support/topic/email-template-tokens-not-being-replaced/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/email-template-tokens-not-being-replaced/#post-16558641)
 * Thanks Robert – the email templates work under normal operation but the _test_
   emails that get sent when you’re setting the plugin up don’t get run through 
   the `replace_email_strings()` method. It gives the impression that the feature
   is broken.
 * I made the changes to the plugin that I indicated in my second message above 
   and it fixed the issue. It’s a much better experience when testing to see the
   correct values in the test emails.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP 2FA - Two-factor authentication for WordPress] Email template tokens not being replaced](https://wordpress.org/support/topic/email-template-tokens-not-being-replaced/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/email-template-tokens-not-being-replaced/#post-16554941)
 * Having looked at the code, the solution is to change lines 811 and 812 of `/includes/
   classes/class-wp2fa.php` to the following:
 * `$subject = wp_strip_all_tags( _self::replace\_email\_strings(_self::get_wp2fa_email_templates(
   $email_id . '_email_subject' ) ) _)_;`
 * `$message = wpautop( _self::replace\_email\_strings(_self::get_wp2fa_email_templates(
   $email_id . '_email_body' ), $user_id ) _)_;`
 * Additions in italics
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] Error connecting to PayPal](https://wordpress.org/support/topic/error-connecting-to-paypal/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-connecting-to-paypal/#post-16542746)
 * Lol, I tried again after writing my initial message and it worked! 7th time lucky
   it seems 😉
 * It would be helpful to have a more detailed error message; if it can take that
   many attempts I would think many people, like me, would assume something more
   serious was wrong after 3 or 4 failures.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CAPTCHA 4WP - Antispam CAPTCHA solution for WordPress] Bug causes PHP error](https://wordpress.org/support/topic/bug-causes-php-error/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/bug-causes-php-error/#post-15510376)
 * Thanks [@robert681](https://wordpress.org/support/users/robert681/) – that seems
   to address that problem, however I notice the same issue in one of the other 
   class methods. The `reset_password_verify()` takes `$errors` as the first argument,
   but passes `$user` back out under one condition, and nothing under another condition.
 * With filters, you _always_ have to return the _first_ argument no matter what
   you do or don’t do with it in your own code. Otherwise other plugins that hook
   into the same filter afterwards will get nothing (or the wrong thing) and may
   not function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Converter for Media - Optimize images | Convert WebP & AVIF] Plugin does not detect change in wp-content directory](https://wordpress.org/support/topic/plugin-does-not-detect-change-in-wp-content-directory/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/plugin-does-not-detect-change-in-wp-content-directory/#post-14859912)
 * Thanks for your reply. I have added the filters that fix the problem for me.
 * The only thing I would say is this: My solution is below, and you can see that
   I am not providing any information that is specific to my installation. I’m not
   really clear why the plugin can’t use this information by default and still allow
   other users to supersede it.
 * The priority feature of filters should mean that the plugin itself could use 
   a priority of say 5, and any customisation would just need to use a later priority.
 *     ```
       function filterWebpcDirPath($path, $directory)
       {
       	if ($directory === 'uploads') {
       		return WP_CONTENT_DIR . '/uploads';
       	}
   
       	if ($directory === 'webp') {
       		return WP_CONTENT_DIR . '/uploads-webpc';
       	}
   
       	return $path;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Gutenberg Blocks – Website Builder for the Block Editor] Advanced Columns not respecting theme container width after update](https://wordpress.org/support/topic/advanced-columns-not-respecting-theme-container-width-after-update/)
 *  [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/advanced-columns-not-respecting-theme-container-width-after-update/#post-14540057)
 * After reverting to v1.22.5 I can see that the problem is no longer present
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Gutenberg Blocks – Website Builder for the Block Editor] Advanced Columns not respecting theme container width after update](https://wordpress.org/support/topic/advanced-columns-not-respecting-theme-container-width-after-update/)
 *  [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/advanced-columns-not-respecting-theme-container-width-after-update/#post-14539940)
 * I am having this problem as well. Any information on an upcoming fix?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Light] Possible to use partial matches?](https://wordpress.org/support/topic/possible-to-use-partial-matches/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/possible-to-use-partial-matches/#post-14002588)
 * Thanks Mikko
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi Light] Javascript TypeError when clicking Process All Posts](https://wordpress.org/support/topic/javascript-typeerror-when-clicking-process-all-posts/)
 *  Thread Starter [squarestar](https://wordpress.org/support/users/squarestar/)
 * (@squarestar)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/javascript-typeerror-when-clicking-process-all-posts/#post-13658458)
 * Thanks! Much appreciated 🙂

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/squarestar/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/squarestar/replies/page/2/?output_format=md)