Changing the value of any theme setting, like content_width, does not persist after clicking "save".

Comments

grasmash created an issue. See original summary.

grasmash’s picture

Ah, so this is because I made a subtheme, and writer hardcodes its theme name in theme_get_setting('content_width', 'writer'). It should be theme_get_setting('content_width') instead.

sergei_semipiadniy’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB

Hi all,

Agree with grasmash, theme_get_settings() should be subtheme-friendly and have no use of 2d argument.

Because if not given 2d argument - the current theme will automatically be used.

bryanbraun’s picture

Hey @grasmash 👋. Good find.

Thanks for the patch @sergei_semipiadniy. I'm applying it now.

bryanbraun’s picture

I pushed it up to my 8.x-2.x branch. Would either of you be willing to confirm the fix?

bryanbraun’s picture

Status: Needs review » Fixed
sergei_semipiadniy’s picture

Hi,

@bryanbraun, I`ve tested and it works like a charm,

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.