Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#14870 closed defect (bug) (fixed)

first parameter of wp_admin_css() is not optional in docblock

Reported by: hakre Owned by:
Priority: normal Milestone: 3.1
Component: Inline Docs Version: 3.1
Severity: minor Keywords: has-patch
Cc: Focuses:

Description

It is either a documentation problem or a code problem:

wp_admin_css( 'css/global' );
wp_admin_css();
wp_admin_css( 'css/colors' );
wp_admin_css( 'css/ie' );

See second line. In /wordpress-trunk/wp-admin/admin-header.php line 37.

Attachments (2)

14870.patch​ (354 bytes ) - added by hakre 16 years ago.
Not optional.
14870.2.patch​ (699 bytes ) - added by hakre 16 years ago.
Documentation problem.

Download all attachments as: .zip

Change History (9)

@hakre
16 years ago

Not optional.

@hakre
16 years ago

Documentation problem.

#1 @hakre
16 years ago

I provided a patch for both cases, I think it's the documentation problem (second patch) as the parameter is optional in code.

#2 @nacin
16 years ago

function wp_admin_css( $file = 'wp-admin', $force_echo = false ) looks optional to me.

#3 @hakre
16 years ago

  • Summary first parameter of wp_admin_css() is not optional → first parameter of wp_admin_css() is not optional in docblock

#4 @hakre
16 years ago

  • Component General → Inline Docs

#5 @hakre
16 years ago

  • Version → 3.1

#6 @nacin
16 years ago

  • Resolution → fixed
  • Status new → closed

(In [15616]) Make note of an optional argument. props hakre, fixes #14870.

#7 @nacin
16 years ago

  • Milestone Awaiting Review → 3.1
Note: See TracTickets for help on using tickets.