WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#26816 closed enhancement (wontfix)

add "option" function

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

Introduce option() function that just will echo the get_option function

So using option( 'template' ) will be as echo get_option( 'template' );

Change History (2)

#1 @jeremyfelt
6 years ago

A tough part about blindly echoing something from get_option() is that it wouldn't necessarily be properly escaped for output.

Is there a specific scenario where this would be useful?

#2 @nacin
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

I don't think this is necessary or a good idea.

Note: See TracTickets for help on using tickets.