cache_javascript_headers() from masquerade. fixes #3059 #2799

git-svn-id: https://develop.svn.wordpress.org/trunk@4109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-08-22 17:31:53 +00:00
parent 4f4f3595ac
commit 33e6c8fbde
5 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<?php
require_once('../wp-config.php');
header('Content-type: text/javascript; charset=' . get_settings('blog_charset'), true);
cache_javascript_headers();
?>
addLoadEvent(function(){catList=new listMan('categorychecklist');catList.ajaxRespEl='jaxcat';catList.topAdder=1;catList.alt=0;catList.showLink=0;});
addLoadEvent(newCatAddIn);

View File

@@ -1,6 +1,6 @@
<?php
require_once('admin.php');
header('Content-type: text/javascript; charset=' . get_settings('blog_charset'), true);
cache_javascript_headers();
switch ( $_GET['pagenow'] ) :
case 'post.php' :

View File

@@ -1,6 +1,6 @@
<?php
require_once('admin.php');
header('Content-type: text/javascript; charset=' . get_settings('blog_charset'), true);
cache_javascript_headers();
$handler = get_settings( 'siteurl' ) . '/wp-admin/admin-ajax.php';
?>
addLoadEvent(function(){theList=new listMan();});