WordPress.org

Make WordPress Core

Ticket #5818: r6787_alignment_issues.diff

File r6787_alignment_issues.diff, 4.5 KB (added by ffemtcj, 13 years ago)

Fixes alignment issues

  • wp-admin/includes/template.php

     
    4242                $default_cat_id = (int) get_option( 'default_category' );
    4343
    4444                if ( $category->term_id != $default_cat_id )
    45                         $edit .= "<td><a href='" . wp_nonce_url( "categories.php?action=delete&amp;cat_ID=$category->term_id", 'delete-category_' . $category->term_id ) . "' class='delete:the-list:cat-$category->term_id delete'>".__( 'Delete' )."</a>";
     45                        $edit .= "<td style='text-align:center'><a href='" . wp_nonce_url( "categories.php?action=delete&amp;cat_ID=$category->term_id", 'delete-category_' . $category->term_id ) . "' class='delete:the-list:cat-$category->term_id delete'>".__( 'Delete' )."</a>";
    4646                else
    4747                        $edit .= "<td style='text-align:center'>".__( "Default" );
    4848        } else
     
    5656                <th scope='row' style='text-align: center'>$category->term_id</th>
    5757                <td>" . ( $name_override ? $name_override : $pad . ' ' . $category->name ) . "</td>
    5858                <td>$category->description</td>
    59                 <td align='center'>$posts_count</td>
    60                 <td>$edit</td>\n\t</tr>\n";
     59                <td style='text-align:center'>$posts_count</td>
     60                <td style='text-align:center'>$edit</td>\n\t</tr>\n";
    6161
    6262        return apply_filters('cat_row', $output);
    6363}
     
    7676
    7777                $delete_url = wp_nonce_url( "link-category.php?action=delete&amp;cat_ID=$category->term_id", "delete-link-category_$category->term_id" );
    7878                if ( $category->term_id != $default_cat_id )
    79                         $edit .= "<td><a href='$delete_url' class='delete:the-list:link-cat-$category->term_id delete'>" . __( 'Delete' ) . "</a>";
     79                        $edit .= "<td style='text-align:center'><a href='$delete_url' class='delete:the-list:link-cat-$category->term_id delete'>" . __( 'Delete' ) . "</a>";
    8080                else
    8181                        $edit .= "<td style='text-align:center'>" . __( "Default" );
    8282        } else {
     
    9191                <th scope='row' style='text-align: center'>$category->term_id</th>
    9292                <td>" . ( $name_override ? $name_override : $category->name ) . "</td>
    9393                <td>$category->description</td>
    94                 <td align='center'>$count</td>
    95                 <td>$edit</td>\n\t</tr>\n";
     94                <td style='text-align:center'>$count</td>
     95                <td style='text-align:center'>$edit</td>\n\t</tr>\n";
    9696
    9797        return apply_filters( 'link_cat_row', $output );
    9898}
     
    243243                $out = '';
    244244                $out .= '<tr id="tag-' . $tag->term_id . '"' . $class . '>';
    245245                $out .= '<td style="text-align: center"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></td>';
    246                 $out .= '<th scope="row">' . $tag->term_id . '</th>';
     246                $out .= '<th  style="text-align:center" scope="row">' . $tag->term_id . '</th>';
    247247
    248248                $out .= '<td>' . apply_filters( 'term_name', $tag->name ) . '</td>';
    249249
    250                 $out .= "<td>$count</td>";
    251                 $out .= '<td><a href="edit-tags.php?action=edit&amp;tag_ID=' . $tag->term_id . '" class="edit">' .
     250                $out .= "<td style='text-align:center'>$count</td>";
     251                $out .= '<td style="text-align:center"><a href="edit-tags.php?action=edit&amp;tag_ID=' . $tag->term_id . '" class="edit">' .
    252252                        __( 'Edit' ) . "</a></td>" .
    253                         '<td><a href="' . wp_nonce_url( "edit-tags.php?action=delete&amp;tag_ID=$tag->term_id",
     253                        '<td style="text-align:center"><a href="' . wp_nonce_url( "edit-tags.php?action=delete&amp;tag_ID=$tag->term_id",
    254254                                        'delete-tag_' . $tag->term_id ) .
    255255                                '" class="delete:the-list:tag-' . $tag->term_id . ' delete">' .
    256256                                __( 'Delete' ) . "</a></td>";
  • wp-admin/link-manager.php

     
    163163                                        ?><td align='center'><?php echo $visible; ?></td><?php
    164164                                        break;
    165165                                case 'action':
    166                                         echo "<td><a href='link.php?link_id=$link->link_id&amp;action=edit' class='edit'>" . __('Edit') . '</a></td>';
    167                                         echo "<td><a href='" . wp_nonce_url('link.php?link_id='.$link->link_id.'&amp;action=delete', 'delete-bookmark_' . $link->link_id ) . "' class='delete:the-list:link-$link->link_id delete'>" . __('Delete') . '</a></td>';
     166                                        echo "<td style='text-align:center'><a href='link.php?link_id=$link->link_id&amp;action=edit' class='edit'>" . __('Edit') . '</a></td>';
     167                                        echo "<td style='text-align:center'><a href='" . wp_nonce_url('link.php?link_id='.$link->link_id.'&amp;action=delete', 'delete-bookmark_' . $link->link_id ) . "' class='delete:the-list:link-$link->link_id delete'>" . __('Delete') . '</a></td>';
    168168                                        break;
    169169                                default:
    170170                                        ?>