Correct the @since's for custom-header.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@13895 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a2244bcc26
commit
7c772cde16
@ -9,7 +9,7 @@
|
||||
/**
|
||||
* The custom header image class.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
*/
|
||||
@ -19,7 +19,7 @@ class Custom_Image_Header {
|
||||
* Callback for administration header.
|
||||
*
|
||||
* @var callback
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
* @access private
|
||||
*/
|
||||
var $admin_header_callback;
|
||||
@ -33,12 +33,19 @@ class Custom_Image_Header {
|
||||
*/
|
||||
var $admin_image_div_callback;
|
||||
|
||||
/**
|
||||
* Holds default headers.
|
||||
*
|
||||
* @var array
|
||||
* @since 3.0.0
|
||||
* @access private
|
||||
*/
|
||||
var $default_headers = array();
|
||||
|
||||
/**
|
||||
* PHP4 Constructor - Register administration header callback.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
* @param callback $admin_header_callback
|
||||
* @param callback $admin_image_div_callback Optional custom image div output callback.
|
||||
* @return Custom_Image_Header
|
||||
@ -51,7 +58,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Set up the hooks for the Custom Header admin page.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function init() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
@ -69,7 +76,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Get the current step.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.6.0
|
||||
*
|
||||
* @return int Current step
|
||||
*/
|
||||
@ -87,7 +94,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Set up the enqueue for the JavaScript files.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function js_includes() {
|
||||
$step = $this->step();
|
||||
@ -115,7 +122,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Execute custom header modification.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.6.0
|
||||
*/
|
||||
function take_action() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
@ -148,7 +155,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Process the default headers
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 3.0.0
|
||||
*/
|
||||
function process_default_headers() {
|
||||
global $_wp_default_headers;
|
||||
@ -210,7 +217,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Execute Javascript depending on step.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function js() {
|
||||
$step = $this->step();
|
||||
@ -223,7 +230,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Display Javascript based on Step 1.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.6.0
|
||||
*/
|
||||
function js_1() { ?>
|
||||
<script type="text/javascript">
|
||||
@ -301,7 +308,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Display Javascript based on Step 2.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.6.0
|
||||
*/
|
||||
function js_2() { ?>
|
||||
<script type="text/javascript">
|
||||
@ -353,7 +360,7 @@ class Custom_Image_Header {
|
||||
/**
|
||||
* Display first step of custom header image page.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function step_1() {
|
||||
$this->process_default_headers();
|
||||
@ -448,7 +455,7 @@ if ( !empty($this->default_headers) ) {
|
||||
/**
|
||||
* Display second step of custom header image page.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function step_2() {
|
||||
check_admin_referer('custom-header');
|
||||
@ -528,7 +535,7 @@ if ( !empty($this->default_headers) ) {
|
||||
/**
|
||||
* Display third step of custom header image page.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function step_3() {
|
||||
check_admin_referer('custom-header');
|
||||
@ -577,7 +584,7 @@ if ( !empty($this->default_headers) ) {
|
||||
/**
|
||||
* Display last step of custom header image page.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function finished() {
|
||||
$_GET['updated'] = 1;
|
||||
@ -587,7 +594,7 @@ if ( !empty($this->default_headers) ) {
|
||||
/**
|
||||
* Display the page based on the current step.
|
||||
*
|
||||
* @since 3.0.0
|
||||
* @since 2.1.0
|
||||
*/
|
||||
function admin_page() {
|
||||
if ( ! current_user_can('switch_themes') )
|
||||
|
Loading…
Reference in New Issue
Block a user