Changeset 6542
- Timestamp:
- 01/03/2008 01:34:11 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r6373 r6542 7 7 if ( !is_user_logged_in() ) 8 8 die('-1'); 9 10 if ( 'ajax-tag-search' == $_GET['action'] ) { 11 if ( !current_user_can( 'manage_categories' ) ) 12 die('-1'); 13 14 $s = $_GET['q']; // is this slashed already? 15 16 if ( strstr( $s, ',' ) ) 17 die; // it's a multiple tag insert, we won't find anything 18 $results = $wpdb->get_col( "SELECT name FROM $wpdb->terms WHERE name LIKE ('%$s%')" ); 19 echo join( $results, "\n" ); 20 die; 21 } 9 22 10 23 function get_out_now() { exit; } -
trunk/wp-admin/edit-form-advanced.php
r6213 r6542 158 158 <?php echo $form_prevstatus ?> 159 159 160 <fieldset id="tagdiv">161 <legend><?php _e('Tags (separate multiple tags with commas: cats, pet food, dogs)'); ?></legend>162 <div><input type="text" name="tags_input" class="tags-input" id="tags-input" size="30" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></div>163 </fieldset>164 165 160 <p class="submit"> 166 161 <span id="autosave"></span> … … 202 197 203 198 <div class="dbx-b-ox-wrapper"> 199 <fieldset id="tagdiv" class="dbx-box"> 200 <div class="dbx-h-andle-wrapper"> 201 <h3 class="dbx-handle"><?php _e('Tags (separate multiple tags with commas: cats, pet food, dogs)'); ?></h3> 202 </div> 203 <div class="dbx-c-ontent-wrapper"> 204 <div class="dbx-content"> 205 <p id="jaxtag"> 206 <input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /> 207 </p> 208 <p id="tagchecklist"></p> 209 </div></div> 210 </fieldset> 211 </div> 212 213 <div class="dbx-b-ox-wrapper"> 204 214 <fieldset id="postexcerpt" class="dbx-box"> 205 215 <div class="dbx-h-andle-wrapper"> … … 207 217 </div> 208 218 <div class="dbx-c-ontent-wrapper"> 209 <div class="dbx-content"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea> </div>210 </div> 219 <div class="dbx-content"><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea> 220 </div></div> 211 221 </fieldset> 212 222 </div> -
trunk/wp-admin/post-new.php
r6513 r6542 7 7 wp_enqueue_script('jquery'); 8 8 wp_enqueue_script('autosave'); 9 wp_enqueue_script('post'); 10 9 11 require_once ('./admin-header.php'); 10 12 -
trunk/wp-admin/post.php
r6213 r6542 59 59 } 60 60 61 if($post->post_status == 'draft') { 61 wp_enqueue_script('post'); 62 63 if( 'draft' == $post->post_status ) { 62 64 wp_enqueue_script('prototype'); 63 65 wp_enqueue_script('autosave'); 64 66 } 67 65 68 require_once('admin-header.php'); 66 69 -
trunk/wp-admin/wp-admin.css
r6484 r6542 91 91 body { 92 92 background: #fff; 93 color: # 000;93 color: #333; 94 94 margin: 0; 95 95 padding: 0; … … 138 138 } 139 139 140 input:focus, textarea:focus, label:focus {141 background: #fff;142 border: 1px solid #686868;143 }144 145 140 .form-invalid { 146 141 background-color: #FF9999 !important; … … 160 155 161 156 textarea, input, select { 162 background: #f4f4f4;163 border: 1px solid #b2b2b2;164 color: #000;165 157 font: 13px Verdana, Arial, Helvetica, sans-serif; 166 158 margin: 1px; … … 297 289 298 290 .submit input, .submit input:focus, .button, .button:focus { 299 background: url(images/fade-butt.png);300 291 color: #246; 301 padding: 0.3em; 302 -moz-border-radius: 4px; 292 padding: 2px; 303 293 } 304 294 … … 388 378 } 389 379 390 #postdiv, #titlediv, #guiddiv , #tagdiv{380 #postdiv, #titlediv, #guiddiv { 391 381 margin: 0 8px 0 0; 392 382 padding: 0; … … 408 398 } 409 399 410 #titlediv input, #guiddiv input , #tagdiv input{400 #titlediv input, #guiddiv input { 411 401 margin: 0; 412 402 width: 100%; … … 1397 1387 border-bottom: 1px solid #448abd; 1398 1388 } 1389 1390 /* Post Screen */ 1391 1392 #tagchecklist { 1393 margin-left: 5px; 1394 font-size: 12px; 1395 } 1396 1397 #tagchecklist span { 1398 margin-right: 15px; 1399 display: block; 1400 float: left; 1401 font-size: 11px; 1402 } 1403 1404 #tagchecklist span a { 1405 margin-top: 5px; 1406 cursor: pointer; 1407 width: 10px; 1408 height: 10px; 1409 background: url(images/xit.gif) no-repeat; 1410 display: block; 1411 float: left; 1412 text-indent: -9999px; 1413 overflow: hidden; 1414 } 1415 #tagchecklist span a:hover { 1416 background: url(images/xit.gif) no-repeat -10px 0; 1417 } 1418 1419 #newtag { 1420 color: #999; 1421 } 1422 1423 .howto { 1424 font-style: italic; 1425 display: block; 1426 color: #999; 1427 } 1428 1429 .ac_results { 1430 border: 1px solid gray; 1431 background-color: white; 1432 padding: 0; 1433 margin: 0; 1434 list-style: none; 1435 position: absolute; 1436 z-index: 10000; 1437 display: none; 1438 } 1439 1440 .ac_results li { 1441 padding: 2px 5px; 1442 white-space: nowrap; 1443 color: #101010; 1444 text-align: left; 1445 } 1446 1447 .ac_over { 1448 cursor: pointer; 1449 background-color: #F0F0B8; 1450 } 1451 1452 .ac_match { 1453 text-decoration: underline; 1454 color: black; 1455 } -
trunk/wp-includes/functions.php
r6535 r6542 1286 1286 } 1287 1287 $html .= "\t\t<input type='hidden' name='_wpnonce' value='" . wp_create_nonce( $action ) . "' />\n"; 1288 $html .= "\t\t<div id='message' class=' confirmfade'>\n\t\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t\t<p><a href='$adminurl'>" . __( 'No' ) . "</a> <input type='submit' value='" . __( 'Yes' ) . "' /></p>\n\t\t</div>\n\t</form>\n";1288 $html .= "\t\t<div id='message' class='updated fade'>\n\t\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t\t<p><a href='$adminurl'>" . __( 'No' ) . "</a> <input type='submit' value='" . __( 'Yes' ) . "' /></p>\n\t\t</div>\n\t</form>\n"; 1289 1289 } else { 1290 $html .= "\t<div id='message' class=' confirmfade'>\n\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t<p><a href='$adminurl'>" . __( 'No' ) . "</a> <a href='" . clean_url( add_query_arg( '_wpnonce', wp_create_nonce( $action ), $_SERVER['REQUEST_URI'] ) ) . "'>" . __( 'Yes' ) . "</a></p>\n\t</div>\n";1290 $html .= "\t<div id='message' class='updated fade'>\n\t<p>" . wp_specialchars( wp_explain_nonce( $action ) ) . "</p>\n\t<p><a href='$adminurl'>" . __( 'No' ) . "</a> <a href='" . clean_url( add_query_arg( '_wpnonce', wp_create_nonce( $action ), $_SERVER['REQUEST_URI'] ) ) . "'>" . __( 'Yes' ) . "</a></p>\n\t</div>\n"; 1291 1291 } 1292 1292 $html .= "</body>\n</html>"; -
trunk/wp-includes/script-loader.php
r6512 r6542 81 81 $this->add( 'jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '1.0.3'); 82 82 $this->add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.2'); 83 $this->add( 'dimensions', '/wp-includes/js/jquery/jquery.dimensions.min.js', array('jquery'), '1.1.2'); 84 $this->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('dimensions'), '1.1'); 83 85 84 86 if ( is_admin() ) { … … 130 132 $this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' ); 131 133 $this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' ); 134 $this->add( 'post', '/wp-admin/js/post.js', array('suggest'), '20080102' ); 132 135 $this->localize( 'upload', 'uploadL10n', array( 133 136 'browseTitle' => attribute_escape(__('Browse your files')),
Note: See TracChangeset
for help on using the changeset viewer.