Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#26255 closed defect (bug) (fixed)

Ensure all Style dependancies are set

Reported by: dd32's profile dd32 Owned by:
Milestone: 3.8 Priority: high
Severity: normal Version: 3.8
Component: General Keywords:
Focuses: Cc:

Description

This is a follow on to #26236

We need to ensure that all styles have their proper dependancies set prior to release, if something needs dashicons, it should be set as a dependancy, etc.

For dashicons specifically, here's a one-liner to list the files that refer to 'dashicons': (I'm sure it can be simplified)
find ./ -iname *.css | grep -v 'wp-content/' | sed "s/.\///" | xargs grep dashicons | sed "s/:.*$//g" | uniq

Attached is a patch that adds the dashicons dependancy to the remaining files, however, we should leave this ticket open and revisit at RC time.

Attachments (1)

26255.diff (1.7 KB) - added by dd32 11 years ago.

Download all attachments as: .zip

Change History (5)

@dd32
11 years ago

#1 @samuelsidler
11 years ago

  • Priority changed from normal to high

#2 @nacin
11 years ago

In 26596:

Declare dashicons dependency for wp-pointer.css and media-views.css.

props dd32.
see #26255.

#3 @nacin
11 years ago

In 26605:

Add Open Sans as a dependency to install.css and add Dashicons as a dependency to some other CSS files. see #26255.

#4 @nacin
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

I went by these guidelines:

  • Dashicons needs to be a dependency everywhere it is used.
  • Open Sans does *not* need to be a dependency everywhere.

Basically, Open Sans is for the admin. The toolbar, the installer screens, and the admin all need it. But I'm not sure using the media manager on the frontend requires Open Sans to work. (Of course, if Open Sans was installed on the computer, it'd load.)

Note: See TracTickets for help on using tickets.