Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks translated permalinks for Polylang Pro #1498

Open
tharsheblows opened this issue Jul 16, 2024 · 0 comments
Open

Breaks translated permalinks for Polylang Pro #1498

tharsheblows opened this issue Jul 16, 2024 · 0 comments
Labels
integration Integration with other plugins or WordPress core functionality support forum From the WP.org plugin support forum

Comments

@tharsheblows
Copy link
Contributor

tharsheblows commented Jul 16, 2024

Bug Report

Breaks translated permalinks for Polylang Pro

Expected Behavior

Stream does not break the translated permalinks in Polylang Pro.

Actual Behavior

The admin panel side translated page permalinks do not work in certain conditions.

Steps to Reproduce the Problem

from forum description:

Steps to reproduce:

  1. Install Polylang plugin
  2. Under wordpress Permalink Settings make sure to have Custom Structure /%category%/%postname%/
  3. Create translations for some category and verify permalinks for translated posts with this category works.
  4. Install Stream plugin.
  5. Update permalinks from Admin Panel side (for example, change translations of category) and see that translated pages permalinks does not work.

(Permalink regeneration from client side works, so this made this problem hard to catch)

As far as I understood from debug backtrace, WP_Stream\Connector_Blogs steals Polylang Pro action ‘do_prepare_rewrite_rules’ from ‘wp_loaded’. Probably because of this, did_action( ‘wp_loaded’ ) returns true for polylang.
... setup must be Multisite with additional blogs.

@tharsheblows tharsheblows added integration Integration with other plugins or WordPress core functionality support forum From the WP.org plugin support forum labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Integration with other plugins or WordPress core functionality support forum From the WP.org plugin support forum
Projects
None yet
Development

No branches or pull requests

1 participant