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

[fix] get languages list dynamically #4

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

rosamaggi
Copy link
Collaborator

In order to make the breadcrumb works for every languages, we now get the list of installed languages for each site directly from the wp-json API and then we call wp-json menu API for each language in the list.

  • site is now a class
  • WpMenu has been replaced by M̀enuEntry`class
  • All tests have been adapted to the new structure:
    image

…uring each refresh as the site array is already in memory.

The refresh method will update memory and file.
Reading the file each time will encrease the file it self as the load from file method will push items in the memory that will after written into the file. The result whould be the file size double each time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant