diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-22 12:54:24 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-12-22 12:54:24 +0000 |
| commit | 4fb300c67a3442cd0209a6129d53f0f727b60743 (patch) | |
| tree | a190684f113f031dbbac1d0bf09a1202251e3524 /wp-admin/link-manager.php | |
| parent | 866b3a1b844041e6128e7e3c22710b49e72b99ec (diff) | |
WP Merge to rev 4661
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@828 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/link-manager.php')
| -rw-r--r-- | wp-admin/link-manager.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 562e2e5..05b1841 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -65,7 +65,7 @@ function checkAll(form) if ( isset($_GET['deleted']) ) { echo '<div style="background-color: rgb(207, 235, 247);" id="message" class="updated fade"><p>'; $deleted = (int) $_GET['deleted']; - printf(__('%s links deleted.'), $deleted); + printf(__ngettext('%s link deleted.', '%s links deleted', $deleted), $deleted); echo '</p></div>'; } ?> @@ -116,7 +116,7 @@ if ( $links ) { <?php wp_nonce_field('bulk-bookmarks') ?> <input type="hidden" name="link_id" value="" /> <input type="hidden" name="action" value="" /> -<input type="hidden" name="order_by" value="<?php echo wp_specialchars($order_by, 1); ?>" /> +<input type="hidden" name="order_by" value="<?php echo attribute_escape($order_by); ?>" /> <input type="hidden" name="cat_id" value="<?php echo (int) $cat_id ?>" /> <table class="widefat"> <thead> @@ -130,9 +130,9 @@ if ( $links ) { <tbody id="the-list"> <?php foreach ($links as $link) { - $link->link_name = wp_specialchars($link->link_name); + $link->link_name = attribute_escape($link->link_name); $link->link_description = wp_specialchars($link->link_description); - $link->link_url = wp_specialchars($link->link_url); + $link->link_url = attribute_escape($link->link_url); $link->link_category = wp_get_link_cats($link->link_id); $short_url = str_replace('http://', '', $link->link_url); $short_url = str_replace('www.', '', $short_url); @@ -188,7 +188,6 @@ if ( $links ) { echo '<td align="center"><input type="checkbox" name="linkcheck[]" value="'.$link->link_id.'" /></td>'; echo "\n </tr>\n"; } -} ?> </tbody> </table> @@ -198,6 +197,7 @@ if ( $links ) { <p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> »" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently.\n'Cancel' to stop, 'OK' to delete.")); ?>')" /></p> </form> +<?php } ?> <?php if( wp_cache_get( "checked_bookmarks_table", "options" ) == false ) { $results = $wpdb->get_results( "SELECT link_id, category_id, count( * ) AS c FROM {$wpdb->link2cat} GROUP BY link_id, category_id" ); |
