saga icon indicating copy to clipboard operation
saga copied to clipboard

Editor styles

Open samikeijonen opened this issue 11 years ago • 1 comments

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?

samikeijonen avatar Dec 15 '14 14:12 samikeijonen

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.

justintadlock avatar Dec 15 '14 23:12 justintadlock