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 fetching of ids for partials of provided templates #437

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

piqusy
Copy link
Contributor

@piqusy piqusy commented Oct 17, 2024

Description

Fetching newly structured eightshift-theme-options from db needs to be unserialised

e.g.
$footerPartialId = get_option(ThemeOptions::OPTION_NAME)['footer'] ?? '';
should look like:
$footerPartialId = json_decode(get_option(ThemeOptions::OPTION_NAME), true)['footer'] ?? '';

@piqusy piqusy added the bug Something isn't working label Oct 17, 2024
@piqusy piqusy added this to the 9.2.3 milestone Oct 17, 2024
@piqusy piqusy requested a review from a team October 17, 2024 12:20
@piqusy piqusy self-assigned this Oct 17, 2024
Improved version of previous commit

Co-authored-by: Ivan Ružević <[email protected]>
@piqusy piqusy merged commit 7a6425e into release/9.2.3 Nov 21, 2024
4 checks passed
@piqusy piqusy deleted the fix/featching-theme-options-ids-for-templates branch November 21, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants