Rename unused argument and remove obsolete global in `iframe_header()`.

props ipm-frommen.
fixes #31309.

git-svn-id: https://develop.svn.wordpress.org/trunk@31443 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-02-13 05:30:53 +00:00
parent 5f360a12a7
commit 5ec46121cd
1 changed files with 4 additions and 4 deletions

View File

@ -250,7 +250,7 @@ function wp_terms_checklist( $post_id = 0, $args = array() ) {
* @since 2.5.0
*
* @param string $taxonomy Taxonomy to retrieve terms from.
* @param int $default Unused.
* @param int $default Not used.
* @param int $number Number of terms to retrieve. Defaults to 10.
* @param bool $echo Optionally output the list as well. Defaults to true.
* @return array List of popular term IDs.
@ -1527,12 +1527,12 @@ function _admin_search_query() {
*
* @since 2.7.0
* @param string $title Title of the Iframe page.
* @param bool $limit_styles Limit styles to colour-related styles only (unless others are enqueued).
* @param bool $deprecated Not used.
*
*/
function iframe_header( $title = '', $limit_styles = false ) {
function iframe_header( $title = '', $deprecated = false ) {
show_admin_bar( false );
global $hook_suffix, $current_user, $admin_body_class, $wp_locale;
global $hook_suffix, $admin_body_class, $wp_locale;
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
$current_screen = get_current_screen();