Ticket #7725: 7725.comments.patch
| File 7725.comments.patch, 24.8 KB (added by Viper007Bond, 5 years ago) |
|---|
-
wp-admin/edit-comments.php
13 13 wp_enqueue_script( 'admin-comments' ); 14 14 wp_enqueue_script( 'admin-forms' ); 15 15 wp_enqueue_script( 'jquery-table-hotkeys' ); 16 wp_enqueue_script( 'comments' ); 16 17 17 18 if ( isset( $_POST['delete_all_spam'] ) ) { 18 19 check_admin_referer('bulk-spam-delete'); … … 96 97 } 97 98 ?> 98 99 <div class="wrap"> 100 101 <form id="adv-settings" action="" method="get"> 102 <div id="show-settings" class="hide-if-no-js"><a href="#edit_settings" id="show-settings-link"><?php _e('Advanced Options') ?></a> 103 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js"><?php _e('Hide Options') ?></a></div> 104 105 <div id="edit-settings" class="hide-if-js hide-if-no-js"> 106 <div id="edit-settings-wrap"> 107 <h5><?php _e('Show on screen') ?></h5> 108 <div class="metabox-prefs"> 109 <?php manage_columns_prefs('comment') ?> 110 <br class="clear" /> 111 </div></div> 112 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 113 </div></form> 114 99 115 <form id="posts-filter" action="" method="get"> 100 116 <h2><?php _e('Manage Comments'); ?></h2> 101 117 … … 208 224 ?> 209 225 <table class="widefat"> 210 226 <thead> 211 <tr> 212 <th scope="col" class="check-column"><input type="checkbox" /></th> 213 <th scope="col" class="comment-column"><?php _e('Comment') ?></th> 214 <th scope="col" class="author-column"><?php _e('Author') ?></th> 215 <th scope="col" class="date-column"><?php _e('Submitted') ?></th> 216 <th scope="col" class="response-column"><?php _e('In Response To This Post') ?></th> 217 </tr> 227 <tr> 228 <?php print_column_headers('comment'); ?> 229 </tr> 218 230 </thead> 219 231 <tbody id="the-comment-list" class="list:comment"> 220 232 <?php -
wp-admin/includes/template.php
516 516 return wp_manage_posts_columns(); 517 517 case 'page': 518 518 return wp_manage_pages_columns(); 519 case 'comment': 520 $columns = array( 521 'cb' => '<input type="checkbox" />', 522 'comment' => __('Comment'), 523 'author' => __('Author'), 524 'date' => __('Submitted'), 525 'response' => __('In Response To This Post') 526 ); 527 528 return apply_filters('manage_comments_columns', $columns); 519 529 case 'link': 520 530 $columns = array( 521 531 'cb' => '<input type="checkbox" />', … … 1587 1597 $unapprove_url = clean_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$comment->comment_post_ID&c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" ) ); 1588 1598 $spam_url = clean_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$comment->comment_post_ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 1589 1599 1590 ?> 1591 <tr id="comment-<?php echo $comment->comment_ID; ?>" class='<?php echo $the_comment_status; ?>'> 1592 <?php if ( $checkbox ) : ?> 1593 <td class="check-column"><?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> 1594 <?php endif; ?> 1595 <td class="comment-column"> 1596 <?php if ( 'detail' == $mode || 'single' == $mode ) comment_text(); ?> 1600 echo "<tr id='comment-$comment->comment_ID' class='$the_comment_status'>"; 1601 $columns = get_column_headers('comment'); 1602 $hidden = (array) get_user_option( 'manage-comment-columns-hidden' ); 1603 foreach ( $columns as $column_name => $column_display_name ) { 1604 $class = "class=\"$column_name column-$column_name\""; 1597 1605 1598 <?php 1599 $actions = array(); 1606 $style = ''; 1607 if ( in_array($column_name, $hidden) ) 1608 $style = ' style="display:none;"'; 1600 1609 1601 if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 1602 $actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 1603 $actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 1604 if ( $comment_status ) { // not looking at all comments 1605 if ( 'approved' == $the_comment_status ) { 1606 $actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment vim-u vim-destructive' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 1607 unset($actions['approve']); 1608 } else { 1609 $actions['approve'] = "<a href='$approve_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment vim-a vim-destructive' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 1610 unset($actions['unapprove']); 1611 } 1612 } 1613 if ( 'spam' != $the_comment_status ) 1614 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . __( 'Spam' ) . '</a>'; 1615 $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete vim-d vim-destructive'>" . __('Delete') . '</a>'; 1616 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . __('Edit comment') . "'>". __('Edit') . '</a>'; 1617 if ( 'spam' != $the_comment_status ) 1618 $actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" class="vim-r" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>'; 1610 $attributes = "$class$style"; 1619 1611 1620 $actions = apply_filters( 'comment_row_actions', $actions, $comment ); 1612 switch ($column_name) { 1613 case 'cb': 1614 if ( !$checkbox ) break; 1615 echo '<th scope="row" class="check-column">'; 1616 if ( current_user_can('edit_post', $comment->comment_post_ID) ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' />"; 1617 echo '</th>'; 1618 break; 1619 case 'comment': 1620 echo "<td $attributes>"; 1621 if ( 'detail' == $mode || 'single' == $mode ) comment_text(); 1621 1622 1622 $action_count = count($actions); 1623 $i = 0; 1624 foreach ( $actions as $action => $link ) { 1625 ++$i; 1626 ( $i == $action_count ) ? $sep = '' : $sep = ' | '; 1627 // The action before reply shouldn't output a sep 1628 if ( 'edit' == $action ) 1629 $sep = ''; 1630 // Reply needs a hide-if-no-js span 1631 if ( 'reply' == $action ) 1632 echo "<span class='$action'><span class='hide-if-no-js'> | $link</span>$sep</span>"; 1633 else 1634 echo "<span class='$action'>$link$sep</span>"; 1623 $actions = array(); 1624 1625 if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 1626 $actions['approve'] = "<a href='$approve_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=approved vim-a' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 1627 $actions['unapprove'] = "<a href='$unapprove_url' class='dim:the-comment-list:comment-$comment->comment_ID:unapproved:e7e7d3:e7e7d3:new=unapproved vim-u' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 1628 if ( $comment_status ) { // not looking at all comments 1629 if ( 'approved' == $the_comment_status ) { 1630 $actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment vim-u vim-destructive' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 1631 unset($actions['approve']); 1632 } else { 1633 $actions['approve'] = "<a href='$approve_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment vim-a vim-destructive' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 1634 unset($actions['unapprove']); 1635 } 1636 } 1637 if ( 'spam' != $the_comment_status ) 1638 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . __( 'Spam' ) . '</a>'; 1639 $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete vim-d vim-destructive'>" . __('Delete') . '</a>'; 1640 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . __('Edit comment') . "'>". __('Edit') . '</a>'; 1641 if ( 'spam' != $the_comment_status ) 1642 $actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',this);return false;" class="vim-r" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>'; 1643 1644 $actions = apply_filters( 'comment_row_actions', $actions, $comment ); 1645 1646 $action_count = count($actions); 1647 $i = 0; 1648 foreach ( $actions as $action => $link ) { 1649 ++$i; 1650 ( $i == $action_count ) ? $sep = '' : $sep = ' | '; 1651 // The action before reply shouldn't output a sep 1652 if ( 'edit' == $action ) 1653 $sep = ''; 1654 // Reply needs a hide-if-no-js span 1655 if ( 'reply' == $action ) 1656 echo "<span class='$action'><span class='hide-if-no-js'> | $link</span>$sep</span>"; 1657 else 1658 echo "<span class='$action'>$link$sep</span>"; 1659 } 1660 } 1661 1662 echo '</td>'; 1663 break; 1664 case 'author': 1665 echo "<td $attributes><strong>"; comment_author(); echo '</strong><br />'; 1666 if ( !empty($author_url) ) 1667 echo "<a href='$author_url'>$author_url_display</a><br />"; 1668 if ( current_user_can( 'edit_post', $post->ID ) ) { 1669 if ( !empty($comment->comment_author_email) ) { 1670 comment_author_email_link(); 1671 echo '<br />'; 1672 } 1673 echo '<a href="edit-comments.php?s='; 1674 comment_author_IP(); 1675 echo '&mode=detail">'; 1676 comment_author_IP(); 1677 echo '</a>'; 1678 } //current_user_can 1679 echo '</td>'; 1680 break; 1681 case 'date': 1682 echo "<td $attributes>" . get_comment_date(__('Y/m/d \a\t g:ia')) . '</td>'; 1683 break; 1684 case 'response': 1685 if ( 'single' !== $mode ) 1686 echo "<td $attributes>"$post_link" " . sprintf('(%s comments)', $post->comment_count) . '<br />' . get_the_time(__('Y/m/d \a\t g:ia')) . '</td>'; 1635 1687 } 1636 1688 } 1637 ?> 1638 </td> 1639 <td class="author-column"> 1640 <strong><?php comment_author(); ?></strong><br /> 1641 <?php if ( !empty($author_url) ) : ?> 1642 <a href="<?php echo $author_url ?>"><?php echo $author_url_display; ?></a><br /> 1643 <?php endif; ?> 1644 <?php if ( current_user_can( 'edit_post', $post->ID ) ) : ?> 1645 <?php if ( !empty($comment->comment_author_email) ): ?> 1646 <?php comment_author_email_link() ?><br /> 1647 <?php endif; ?> 1648 <a href="edit-comments.php?s=<?php comment_author_IP() ?>&mode=detail"><?php comment_author_IP() ?></a> 1649 <?php endif; //current_user_can?> 1650 </td> 1651 <td class="date-column"><?php comment_date(__('Y/m/d \a\t g:ia')); ?></td> 1652 <?php if ( 'single' !== $mode ) : ?> 1653 <td class="response-column"> 1654 "<?php echo $post_link ?>" <?php echo sprintf('(%s comments)', $post->comment_count); ?><br /> 1655 <?php echo get_the_time(__('Y/m/d \a\t g:ia')); ?> 1656 </td> 1657 <?php endif; ?> 1658 </tr> 1659 <?php 1689 echo "</tr>\n"; 1660 1690 } 1661 1691 1662 1692 function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single') { … … 2292 2322 2293 2323 foreach ( $columns as $column => $title ) { 2294 2324 // Can't hide these 2295 if ( 'cb' == $column || 'title' == $column || 'name' == $column || 'username' == $column || 'media' == $column )2325 if ( 'cb' == $column || 'title' == $column || 'name' == $column || 'username' == $column || 'media' == $column || 'comment' == $column ) 2296 2326 continue; 2297 2327 if ( empty($title) ) 2298 2328 continue; -
wp-admin/js/categories.js
26 26 } else { 27 27 columns.init('category'); 28 28 } 29 30 // Edit Settings31 $('#show-settings-link').click(function () {32 $('#edit-settings').slideDown('normal', function(){33 $('#show-settings-link').hide();34 $('#hide-settings-link').show();35 36 });37 $('#show-settings').addClass('show-settings-opened');38 return false;39 });40 41 $('#hide-settings-link').click(function () {42 $('#edit-settings').slideUp('normal', function(){43 $('#hide-settings-link').hide();44 $('#show-settings-link').show();45 $('#show-settings').removeClass('show-settings-opened');46 });47 48 return false;49 });50 29 }); -
wp-admin/js/link.js
48 48 return false; 49 49 } ); 50 50 jQuery('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); 51 52 // Edit Settings53 $('#show-settings-link').click(function () {54 $('#edit-settings').slideDown('normal', function(){55 $('#show-settings-link').hide();56 $('#hide-settings-link').show();57 58 });59 $('#show-settings').addClass('show-settings-opened');60 return false;61 });62 63 $('#hide-settings-link').click(function () {64 $('#edit-settings').slideUp('normal', function(){65 $('#hide-settings-link').hide();66 $('#show-settings-link').show();67 $('#show-settings').removeClass('show-settings-opened');68 });69 70 return false;71 });72 51 }); -
wp-admin/js/links.js
1 1 jQuery(document).ready( function($) { 2 2 columns.init('link'); 3 4 // Edit Settings5 $('#show-settings-link').click(function () {6 $('#edit-settings').slideDown('normal', function(){7 $('#show-settings-link').hide();8 $('#hide-settings-link').show();9 10 });11 $('#show-settings').addClass('show-settings-opened');12 return false;13 });14 15 $('#hide-settings-link').click(function () {16 $('#edit-settings').slideUp('normal', function(){17 $('#hide-settings-link').hide();18 $('#show-settings-link').show();19 $('#show-settings').removeClass('show-settings-opened');20 });21 22 return false;23 });24 3 }); 25 No newline at end of file -
wp-admin/js/media.js
1 1 jQuery(document).ready( function($) { 2 2 columns.init('media'); 3 4 // Edit Settings5 $('#show-settings-link').click(function () {6 $('#edit-settings').slideDown('normal', function(){7 $('#show-settings-link').hide();8 $('#hide-settings-link').show();9 10 });11 $('#show-settings').addClass('show-settings-opened');12 return false;13 });14 15 $('#hide-settings-link').click(function () {16 $('#edit-settings').slideUp('normal', function(){17 $('#hide-settings-link').hide();18 $('#show-settings-link').show();19 $('#show-settings').removeClass('show-settings-opened');20 });21 22 return false;23 });24 3 }); -
wp-admin/js/page.js
48 48 return false; 49 49 }); 50 50 51 // Edit Settings52 $('#show-settings-link').click(function () {53 $('#edit-settings').slideDown('normal', function(){54 $('#show-settings-link').hide();55 $('#hide-settings-link').show();56 57 });58 $('#show-settings').addClass('show-settings-opened');59 return false;60 });61 62 $('#hide-settings-link').click(function () {63 $('#edit-settings').slideUp('normal', function(){64 $('#hide-settings-link').hide();65 $('#show-settings-link').show();66 $('#show-settings').removeClass('show-settings-opened');67 });68 69 return false;70 });71 72 51 $('.edit-post-status').click(function() { 73 52 if ($('#post-status-select').is(":hidden")) { 74 53 $('#post-status-select').slideDown("normal"); -
wp-admin/js/pages.js
1 1 jQuery(document).ready( function($) { 2 2 columns.init('page'); 3 4 // Edit Settings5 $('#show-settings-link').click(function () {6 $('#edit-settings').slideDown('normal', function(){7 $('#show-settings-link').hide();8 $('#hide-settings-link').show();9 10 });11 $('#show-settings').addClass('show-settings-opened');12 return false;13 });14 15 $('#hide-settings-link').click(function () {16 $('#edit-settings').slideUp('normal', function(){17 $('#hide-settings-link').hide();18 $('#show-settings-link').show();19 $('#show-settings').removeClass('show-settings-opened');20 });21 22 return false;23 });24 3 }); 25 No newline at end of file -
wp-admin/js/post.js
192 192 return false; 193 193 }); 194 194 195 // Edit Settings196 $('#show-settings-link').click(function () {197 $('#edit-settings').slideDown('normal', function(){198 $('#show-settings-link').hide();199 $('#hide-settings-link').show();200 201 });202 $('#show-settings').addClass('show-settings-opened');203 return false;204 });205 206 $('#hide-settings-link').click(function () {207 $('#edit-settings').slideUp('normal', function(){208 $('#hide-settings-link').hide();209 $('#show-settings-link').show();210 $('#show-settings').removeClass('show-settings-opened');211 });212 213 return false;214 });215 216 195 // Custom Fields 217 196 jQuery('#the-list').wpList( { addAfter: function( xml, s ) { 218 197 if ( jQuery.isFunction( autosave_update_post_ID ) ) { -
wp-admin/js/posts.js
1 1 jQuery(document).ready( function($) { 2 2 columns.init('post'); 3 4 // Edit Settings5 $('#show-settings-link').click(function () {6 $('#edit-settings').slideDown('normal', function(){7 $('#show-settings-link').hide();8 $('#hide-settings-link').show();9 10 });11 $('#show-settings').addClass('show-settings-opened');12 return false;13 });14 15 $('#hide-settings-link').click(function () {16 $('#edit-settings').slideUp('normal', function(){17 $('#hide-settings-link').hide();18 $('#show-settings-link').show();19 $('#show-settings').removeClass('show-settings-opened');20 });21 22 return false;23 });24 3 }); 25 No newline at end of file -
wp-admin/js/tags.js
20 20 $('#the-list').wpList(); 21 21 22 22 columns.init('tag'); 23 24 // Edit Settings 25 $('#show-settings-link').click(function () { 26 $('#edit-settings').slideDown('normal', function(){ 27 $('#show-settings-link').hide(); 28 $('#hide-settings-link').show(); 29 30 }); 31 $('#show-settings').addClass('show-settings-opened'); 32 return false; 33 }); 34 35 $('#hide-settings-link').click(function () { 36 $('#edit-settings').slideUp('normal', function(){ 37 $('#hide-settings-link').hide(); 38 $('#show-settings-link').show(); 39 $('#show-settings').removeClass('show-settings-opened'); 40 }); 41 42 return false; 43 }); 44 }); 23 }); 24 No newline at end of file -
wp-admin/js/users.js
2 2 $('#users').wpList(); 3 3 4 4 columns.init('user'); 5 6 // Edit Settings7 $('#show-settings-link').click(function () {8 $('#edit-settings').slideDown('normal', function(){9 $('#show-settings-link').hide();10 $('#hide-settings-link').show();11 12 });13 $('#show-settings').addClass('show-settings-opened');14 return false;15 });16 17 $('#hide-settings-link').click(function () {18 $('#edit-settings').slideUp('normal', function(){19 $('#hide-settings-link').hide();20 $('#show-settings-link').show();21 $('#show-settings').removeClass('show-settings-opened');22 });23 24 return false;25 });26 5 }); -
wp-admin/wp-admin.css
512 512 font-weight: bold; 513 513 } 514 514 515 .co mment-columnp {515 .column-comment p { 516 516 margin-top: 0; 517 517 } 518 518 519 .co mment-column{519 .column-comment { 520 520 width: 50%; 521 521 } 522 522 523 . author-column,524 . response-column{523 .column-author, 524 .column-response { 525 525 width: 20%; 526 526 } 527 527 528 . author-columnimg {528 .column-author img { 529 529 float: left; 530 530 margin-right: 10px; 531 531 margin-top: 3px; -
wp-includes/script-loader.php
149 149 'add' => attribute_escape(__('Add')), 150 150 'how' => __('Separate multiple categories with commas.') 151 151 ) ); 152 $scripts->add( 'admin-categories', '/wp-admin/js/categories.js', array('wp-lists', 'columns' ), '20071031' );153 $scripts->add( 'admin-tags', '/wp-admin/js/tags.js', array('wp-lists', 'columns' ), '20080918' );152 $scripts->add( 'admin-categories', '/wp-admin/js/categories.js', array('wp-lists', 'columns', 'settings-box'), '20080925' ); 153 $scripts->add( 'admin-tags', '/wp-admin/js/tags.js', array('wp-lists', 'columns', 'settings-box'), '20080925' ); 154 154 $scripts->add( 'admin-custom-fields', '/wp-admin/js/custom-fields.js', array('wp-lists'), '20070823' ); 155 155 $scripts->add( 'password-strength-meter', '/wp-admin/js/password-strength-meter.js', array('jquery'), '20080824' ); 156 156 $scripts->localize( 'password-strength-meter', 'pwsL10n', array( … … 166 166 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']), 167 167 'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last']), 168 168 ) ); 169 $scripts->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists', 'columns' ), '20080918' );169 $scripts->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists', 'columns', 'settings-box'), '20080925' ); 170 170 $scripts->add( 'admin-forms', '/wp-admin/js/forms.js', array('jquery'), '20080729'); 171 171 $scripts->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' ); 172 172 $scripts->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' ); … … 180 180 'save' => __('Save'), 181 181 'cancel' => __('Cancel'), 182 182 ) ); 183 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug' ), '20080701' );183 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug', 'settings-box'), '20080925' ); 184 184 $scripts->localize( 'post', 'postL10n', array( 185 185 'tagsUsed' => __('Tags used on this post:'), 186 186 'add' => attribute_escape(__('Add')), … … 189 189 'cancel' => __('Cancel'), 190 190 'edit' => __('Edit'), 191 191 ) ); 192 $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'postbox' ), '20080318' );192 $scripts->add( 'page', '/wp-admin/js/page.js', array('jquery', 'slug', 'postbox', 'settings-box'), '20080925' ); 193 193 $scripts->localize( 'page', 'postL10n', array( 194 194 'cancel' => __('Cancel'), 195 195 'edit' => __('Edit'), 196 196 ) ); 197 $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox' ), '20080131' );197 $scripts->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox', 'settings-box'), '20080925' ); 198 198 $scripts->add( 'comment', '/wp-admin/js/comment.js', array('postbox'), '20080219' ); 199 199 $scripts->localize( 'comment', 'commentL10n', array( 200 200 'cancel' => __('Cancel'), … … 263 263 'time' => time() 264 264 ) ); 265 265 266 $scripts->add( 'posts', '/wp-admin/js/posts.js', array('columns'), '20080910' ); 267 $scripts->add( 'pages', '/wp-admin/js/pages.js', array('columns'), '20080910' ); 268 $scripts->add( 'links', '/wp-admin/js/links.js', array('columns'), '20080913' ); 269 $scripts->add( 'media', '/wp-admin/js/media.js', array('columns'), '20080915' ); 266 $scripts->add( 'posts', '/wp-admin/js/posts.js', array('columns', 'settings-box'), '20080925' ); 267 $scripts->add( 'pages', '/wp-admin/js/pages.js', array('columns', 'settings-box'), '20080925' ); 268 $scripts->add( 'comments', '/wp-admin/js/comments.js', array('columns', 'settings-box'), '20080925' ); 269 $scripts->add( 'links', '/wp-admin/js/links.js', array('columns', 'settings-box'), '20080925' ); 270 $scripts->add( 'media', '/wp-admin/js/media.js', array('columns', 'settings-box'), '20080925' ); 270 271 271 272 $scripts->add( 'columns', '/wp-admin/js/columns.js', false, '20080910' ); 272 273 $scripts->localize( 'columns', 'columnsL10n', array( 273 274 'requestFile' => admin_url('admin-ajax.php'), 274 275 ) ); 276 277 $scripts->add( 'settings-box', '/wp-admin/js/settings-box.js', array( 'jquery' ), '20080925' ); 275 278 } 276 279 } 277 280
