Make WordPress Core


Ignore:
Timestamp:
10/13/2008 11:39:56 PM (17 years ago)
Author:
ryan
Message:

Plugin install from DD32. see #6015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r9134 r9141  
    30653065 */
    30663066function _admin_search_query() {
    3067     echo ( isset($_GET['s']) ) ? attribute_escape( stripslashes( $_GET['s'] ) ) : '';
    3068 }
    3069 
     3067    echo isset($_GET['s']) ? attribute_escape( stripslashes( $_GET['s'] ) ) : '';
     3068}
     3069
     3070/**
     3071 * Generic Iframe header for use with Thickbox
     3072 *
     3073 * @since 2.7.0
     3074 * @param string $title Title of the Iframe page.
     3075 * @param bool $limit_styles Limit styles to colour-related styles only (unless others are enqueued).
     3076 *
     3077 */
     3078function iframe_header( $title = '', $limit_styles = false) {
     3079?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3080<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     3081<head>
     3082<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
     3083<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title ?> &#8212; <?php _e('WordPress'); ?></title>
     3084<?php
     3085wp_enqueue_style( 'global' );
     3086wp_enqueue_style( 'colors' );
     3087if ( ! $limit_styles )
     3088    wp_enqueue_style( 'wp-admin' );
    30703089?>
     3090<script type="text/javascript">
     3091//<![CDATA[
     3092function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
     3093//]]>
     3094</script>
     3095<?php
     3096do_action('admin_print_styles');
     3097do_action('admin_print_scripts');
     3098do_action('admin_head');
     3099?>
     3100</head>
     3101<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>>
     3102<?php
     3103}
     3104
     3105/**
     3106 * Generic Iframe footer for use with Thickbox
     3107 *
     3108 * @since 2.7.0
     3109 *
     3110 */
     3111function iframe_footer() {
     3112    echo '
     3113    </body>
     3114</html>';
     3115}
     3116
     3117?>
Note: See TracChangeset for help on using the changeset viewer.