Make WordPress Core


Ignore:
Timestamp:
03/29/2006 01:51:55 AM (19 years ago)
Author:
ryan
Message:

AJAX, cause you love it. Props mdawaffe. fixes #2561

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r3570 r3660  
    44if ( $editing ) {
    55    $dbx_js = true;
    6     if ( current_user_can('manage_categories') )
     6    $pmeta_js = true;
     7    if ( current_user_can('manage_categories') ) {
     8        $list_js = true;
    79        $cat_js = true;
     10    }
    811}
    9 if ( $list_js || $cat_js )
     12if ( $list_js )
    1013    $sack_js = true;
    1114?>
     
    3033<?php } ?>
    3134<?php if ( $list_js ) { ?>
    32 <script type="text/javascript" src="list-manipulation.js"></script>
     35<script type="text/javascript" src="list-manipulation-js.php"></script>
     36<?php } ?>
     37<?php if ( $pmeta_js ) { ?>
     38<script type="text/javascript" src="custom-fields.js"></script>
     39<?php } ?>
     40<?php if ( 'categories.php' == $pagenow && 'edit' != $action ) { ?>
     41<script type="text/javascript" src="categories.js"></script>
    3342<?php } ?>
    3443<?php if ( $dbx_js ) { ?>
Note: See TracChangeset for help on using the changeset viewer.