saga
saga copied to clipboard
Editor styles
I was wondering about how WP loads editor styles. I have used this with relative path and seems working fine with child themes.
/* Add the theme's editor styles. This also checks child theme's css/editor-style.css file. */
$editor_styles[] = 'css/editor-style.css';
Is there some benefits that I'm missing using absolute path and is_child_theme check like in Saga Theme?
When you define an absolute path versus a relative path, it changes the order they're loaded. I can't remember which was loaded first. I just remember doing them all the same way for consistency and making sure I was in control of what was loaded when. I'm not sure if that's changed in recent WP versions.