Skip to content

Fixed calendar admin screen style embedding if no Event Categories are defined.#110

Merged
stephenharris merged 1 commit intostephenharris:masterfrom
markisadesignerd:master
Jul 24, 2013
Merged

Fixed calendar admin screen style embedding if no Event Categories are defined.#110
stephenharris merged 1 commit intostephenharris:masterfrom
markisadesignerd:master

Conversation

@markisadesignerd
Copy link
Copy Markdown
Contributor

The current logic only embeds the admin calendar styles if there are categories. I just pulled the style embedding logic out of that if block.

I also removed a stray double quote.

To reproduce:

Start with a fresh install or delete all categories.
Navigate to the Calendar Admin View
Result is an unstyled calendar.

Tested on WP 3.5.2 and Event Organiser 2.2.

…e defined, as well as a stray double quote.
stephenharris added a commit that referenced this pull request Jul 24, 2013
Fixed calendar admin screen style embedding if no Event Categories are defined.
@stephenharris stephenharris merged commit 18931e6 into stephenharris:master Jul 24, 2013
@stephenharris
Copy link
Copy Markdown
Owner

Ooops :S, didn't mean to move the wp_enqueue_style() inside that conditional... Thanks for the PR!

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.

2 participants