Only load category JS on editing pages, fixes #1901

git-svn-id: https://develop.svn.wordpress.org/trunk@3210 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-25 05:00:25 +00:00
parent 2101c1448b
commit fa8a143c93
1 changed files with 1 additions and 2 deletions

View File

@ -114,7 +114,7 @@ tinyMCE.init({
<script type="text/javascript" src="../wp-includes/js/dbx.js"></script> <script type="text/javascript" src="../wp-includes/js/dbx.js"></script>
<script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script> <script type="text/javascript" src="../wp-includes/js/dbx-key.js"></script>
<?php if ( current_user_can('manage_categories') ) : ?> <?php if ( isset($editing) && current_user_can('manage_categories') ) : ?>
<style type="text/css"> <style type="text/css">
#newcat { width: 120px; margin-right: 5px; } #newcat { width: 120px; margin-right: 5px; }
input#catadd { background: #a4a4a4; input#catadd { background: #a4a4a4;
@ -319,7 +319,6 @@ function myPload( str ) {
fixedExplode[count] = currentElement; fixedExplode[count] = currentElement;
return fixedExplode; return fixedExplode;
} }
</script> </script>
<?php endif; ?> <?php endif; ?>