WordPress.org

Make WordPress Core

Ticket #6037: 6037.updateXHTML.diff

File 6037.updateXHTML.diff, 19.5 KB (added by hansengel, 8 years ago)

Updates deprecated HTML elements and attributes to their newer XHTML counterparts

  • wp-includes/js/colorpicker.js

     
    673673        var windowRef = (windowMode)?"window.opener.":""; 
    674674        if (windowMode) { 
    675675                cp_contents += "<html><head><title>Select Color</title></head>"; 
    676                 cp_contents += "<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><center>"; 
     676                cp_contents += "<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><span style='text-align: center;'>"; 
    677677                } 
    678         cp_contents += "<table border=0 cellspacing=0 cellpadding=0>"; 
     678        cp_contents += "<table style='border: none;' cellspacing=0 cellpadding=0>"; 
    679679        var use_highlight = (document.getElementById || document.all)?true:false; 
    680680        for (var i=0; i<total; i++) { 
    681681                if ((i % width) == 0) { cp_contents += "<tr>"; } 
    682682                if (use_highlight) { var mo = 'onMouseOver="'+windowRef+'ColorPicker_highlightColor(\''+colors[i]+'\',window.document)"'; } 
    683683                else { mo = ""; } 
    684                 cp_contents += '<td bgcolor="'+colors[i]+'"><a href="javascript:void()" onclick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+'>&nbsp;</a></td>'; 
     684                cp_contents += '<td style="background-color: '+colors[i]+';"><a href="javascript:void()" onclick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+'>&nbsp;</a></td>'; 
    685685                if ( ((i+1)>=total) || (((i+1) % width) == 0)) {  
    686686                        cp_contents += "</tr>"; 
    687687                        } 
     
    690690        if (document.getElementById) { 
    691691                var width1 = Math.floor(width/2); 
    692692                var width2 = width = width1; 
    693                 cp_contents += "<tr><td colspan='"+width1+"' bgcolor='#ffffff' ID='colorPickerSelectedColor'>&nbsp;</td><td colspan='"+width2+"' align='center' id='colorPickerSelectedColorValue'>#FFFFFF</td></tr>"; 
     693                cp_contents += "<tr><td colspan='"+width1+"' style='background-color: #FFF;' ID='colorPickerSelectedColor'>&nbsp;</td><td colspan='"+width2+"' style='text-align: center;' id='colorPickerSelectedColorValue'>#FFFFFF</td></tr>"; 
    694694                } 
    695695        cp_contents += "</table>"; 
    696696        if (windowMode) { 
    697                 cp_contents += "</center></body></html>"; 
     697                cp_contents += "</span></body></html>"; 
    698698                } 
    699699        // end populate code 
    700700 
  • wp-includes/js/tinymce/wp-mce-help.php

     
    170170<div id="content3" class="hidden"> 
    171171        <h2><?php _e('Writing at Full Speed') ?></h2> 
    172172    <p><?php _e('Rather than reaching for your mouse to click on the toolbar, use these access keys. Windows and Linux use Ctrl + letter. Macintosh uses Apple + letter.') ?></p> 
    173         <table id="keys" width="100%" border="0"> 
     173        <table id="keys" width="100%" style="border: none;"> 
    174174                <tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr> 
    175175                <tr><th>c</th><td><?php _e('Copy') ?></td><th>v</th><td><?php _e('Paste') ?></td></tr> 
    176176                <tr><th>a</th><td><?php _e('Select all') ?></td><th>x</th><td><?php _e('Cut') ?></td></tr> 
     
    183183        </table> 
    184184         
    185185        <p><?php _e('The following shortcuts use different access keys. Windows and Linux use Alt + letter. Macintosh uses Ctrl + letter.') ?></p> 
    186         <table id="keys" width="100%" border="0"> 
     186        <table id="keys" width="100%" style="border: none;"> 
    187187                <tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr> 
    188188                <tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr> 
    189189                <tr><th>j</th><td><?php _e('Justify Text') ?></td><th>c</th><td><?php _e('Align Center') ?></td></tr> 
    190                 <tr><th>k</th><td><strike><?php _e('Strikethrough') ?></strike></td><th>r</th><td><?php _e('Align Right') ?></td></tr> 
    191                 <tr><th>u</th><td><b>&bull;</b> <?php _e('List') ?></td><th>s</th><td><?php _e('Insert link') ?></td></tr> 
     190                <tr><th>k</th><td><span style="text-decoration: line-through;"><?php _e('Strikethrough') ?></span></td><th>r</th><td><?php _e('Align Right') ?></td></tr> 
     191                <tr><th>u</th><td><strong>&bull;</strong> <?php _e('List') ?></td><th>s</th><td><?php _e('Insert link') ?></td></tr> 
    192192                <tr><th>o</th><td>1. <?php _e('List') ?></td><th>d</th><td><?php _e('Remove link') ?></td></tr> 
    193193                <tr><th>q</th><td><?php _e('Quote') ?></td><th>m</th><td><?php _e('Insert Image') ?></td></tr> 
    194194                <tr><th>g</th><td><?php _e('Full Screen') ?></td><th>y</th><td><?php _e('Insert "More" Tag') ?></td></tr> 
     
    205205        <p><?php _e('For more information about this software visit the <a href="http://tinymce.moxiecode.com" target="_blank">TinyMCE website</a>.') ?></p> 
    206206 
    207207        <div id="buttoncontainer"> 
    208                 <a href="http://www.moxiecode.com" target="_new"><img src="themes/advanced/img/gotmoxie.png" alt="<?php _e('Got Moxie?') ?>" border="0" /></a> 
    209                 <a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="themes/advanced/img/sflogo.png" alt="<?php _e('Hosted By Sourceforge') ?>" border="0" /></a> 
    210                 <a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="themes/advanced/img/fm.gif" alt="<?php _e('Also on freshmeat') ?>" border="0" /></a> 
     208                <a href="http://www.moxiecode.com" target="_new"><img src="themes/advanced/img/gotmoxie.png" alt="<?php _e('Got Moxie?') ?>" style="border: none;" /></a> 
     209                <a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="themes/advanced/img/sflogo.png" alt="<?php _e('Hosted By Sourceforge') ?>" style="border: none;" /></a> 
     210                <a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="themes/advanced/img/fm.gif" alt="<?php _e('Also on freshmeat') ?>" style="border: none;" /></a> 
    211211        </div> 
    212212 
    213213</div> 
  • wp-includes/author-template.php

     
    484484                                $link .= '>'; 
    485485 
    486486                                if ( !empty($feed_image) ) 
    487                                         $link .= "<img src=\"$feed_image\" border=\"0\"$alt$title" . ' />'; 
     487                                        $link .= "<img src=\"$feed_image\" style=\"border: none;\"$alt$title" . ' />'; 
    488488                                else 
    489489                                        $link .= $name; 
    490490 
  • readme.html

     
    7070 
    7171<h1>Post via Email</h1> 
    7272<p>You can post from an email client! To set this up go to your &quot;Writing&quot; options screen and fill in the connection details for your secret POP3 account. Then you need to set up <code>wp-mail.php</code> to execute periodically to check the mailbox for new posts. You can do it with Cron-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your <code>wp-mail.php</code> URL.</p> 
    73 <p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address discrete. The script will <i>delete</i> emails that are successfully posted.</p> 
     73<p>Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address discrete. The script will <em>delete</em> emails that are successfully posted.</p> 
    7474 
    7575<h1>User Roles</h1> 
    7676<p>We've eliminated user levels in order to make way for the much more flexible roles system introduced in 2.0. You can <a href="http://codex.wordpress.org/Roles_and_Capabilities">read more about Roles and Capabilities on the Codex</a>.</p> 
  • wp-admin/edit-link-categories.php

     
    9797        <th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th> 
    9898        <th scope="col"><?php _e('Name') ?></th> 
    9999        <th scope="col"><?php _e('Description') ?></th> 
    100         <th scope="col" width="90" style="text-align: center"><?php _e('Links') ?></th> 
     100        <th scope="col" style="width: 35px;" style="text-align: center"><?php _e('Links') ?></th> 
    101101        </tr> 
    102102        </thead> 
    103103        <tbody id="the-list" class="list:link-cat"> 
  • wp-admin/includes/template.php

     
    5656                <th scope='row' class='check-column'><input type='checkbox' name='delete[]' value='$category->term_id' /></th> 
    5757                <td>$edit</td> 
    5858                <td>$category->description</td> 
    59                 <td align='center'>$posts_count</td>\n\t</tr>\n"; 
     59                <td style='text-align: center;'>$posts_count</td>\n\t</tr>\n"; 
    6060 
    6161        return apply_filters('cat_row', $output); 
    6262} 
     
    8484                '<th scope="row" class="check-column"> <input type="checkbox" name="delete[]" value="' . $category->term_id . '" /></th>' . 
    8585                "<td>$edit</td> 
    8686                <td>$category->description</td> 
    87                 <td align='center'>$count</td></tr>"; 
     87                <td style='text-align: center;'>$count</td></tr>"; 
    8888 
    8989        return apply_filters( 'link_cat_row', $output ); 
    9090} 
     
    722722        $r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>"; 
    723723        $r .= "\n\t\t<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>"; 
    724724        $r .= "\n\t\t<td><textarea name='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>"; 
    725         $r .= "\n\t\t<td align='center'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']} updatemeta' /><br />"; 
     725        $r .= "\n\t\t<td style='text-align: center;'><input name='updatemeta' type='submit' tabindex='6' value='".attribute_escape(__( 'Update' ))."' class='add:the-list:meta-{$entry['meta_id']} updatemeta' /><br />"; 
    726726        $r .= "\n\t\t<input name='deletemeta[{$entry['meta_id']}]' type='submit' "; 
    727727        $r .= "class='delete:the-list:meta-{$entry['meta_id']} deletemeta' tabindex='6' value='".attribute_escape(__( 'Delete' ))."' />"; 
    728728        $r .= "</td>\n\t</tr>"; 
     
    749749<th><?php _e( 'Value' ) ?></th> 
    750750</tr> 
    751751        <tr valign="top"> 
    752                 <td align="right" width="18%"> 
     752                <td style="text-align: right;" style="width: 18%;"> 
    753753<?php if ( $keys ) : ?> 
    754754<select id="metakeyselect" name="metakeyselect" tabindex="7"> 
    755755<option value="#NONE#"><?php _e( '- Select -' ); ?></option> 
  • wp-admin/comment.php

     
    7979<table width="100%"> 
    8080<tr> 
    8181<td><input type='button' class="button" value='<?php _e('No'); ?>' onclick="self.location='<?php echo get_option('siteurl'); ?>/wp-admin/edit-comments.php';" /></td> 
    82 <td align="right"><input type='submit' class="button" value='<?php echo $button; ?>' /></td> 
     82<td style="text-align: right;"><input type='submit' class="button" value='<?php echo $button; ?>' /></td> 
    8383</tr> 
    8484</table> 
    8585 
  • wp-admin/edit-link-form.php

     
    144144<div id="linkxfndiv" class="postbox <?php echo postbox_classes('linkxfndiv', 'link'); ?>"> 
    145145<h3><?php _e('Link Relationship (XFN)') ?></h3> 
    146146<div class="inside"> 
    147 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 
     147<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5"> 
    148148        <tr> 
    149                 <th width="20%" scope="row"><?php _e('rel:') ?></th> 
    150                 <td width="80%"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td> 
     149                <th style="width: 20%;" scope="row"><?php _e('rel:') ?></th> 
     150                <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td> 
    151151        </tr> 
    152152        <tr> 
    153153                <th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th> 
     
    257257<div id="linkadvanceddiv" class="postbox <?php echo postbox_classes('linkadvanceddiv', 'link'); ?>"> 
    258258<h3><?php _e('Advanced') ?></h3> 
    259259<div class="inside"> 
    260 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 
     260<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5"> 
    261261        <tr> 
    262                 <th width="20%" scope="row"><?php _e('Image Address:') ?></th> 
    263                 <td width="80%"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td> 
     262                <th style="width: 20%;" scope="row"><?php _e('Image Address:') ?></th> 
     263                <td style="width: 80%;"><input type="text" name="link_image" size="50" value="<?php echo $link->link_image; ?>" style="width: 95%" /></td> 
    264264        </tr> 
    265265        <tr> 
    266266                <th scope="row"><?php _e('RSS Address:') ?> </th> 
  • wp-admin/import/livejournal.php

     
    6666 
    6767                        echo '<li>'; 
    6868                        if ($post_id = post_exists($post_title, $post_content, $post_date)) { 
    69                                 printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title)); 
     69                                printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title)); 
    7070                        } else { 
    71                                 printf(__('Importing post <i>%s</i>...'), stripslashes($post_title)); 
     71                                printf(__('Importing post <em>%s</em>...'), stripslashes($post_title)); 
    7272                                $postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); 
    7373                                $post_id = wp_insert_post($postdata); 
    7474                                if ( is_wp_error( $post_id ) ) 
  • wp-admin/import/mt.php

     
    152152<div class="wrap"> 
    153153<h2><?php _e('Assign Authors'); ?></h2> 
    154154<p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as admin\'s entries.'); ?></p> 
    155 <p><?php _e('Below, you can see the names of the authors of the MovableType posts in <i>italics</i>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p> 
     155<p><?php _e('Below, you can see the names of the authors of the MovableType posts in <em>italics</em>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p> 
    156156<p><?php _e('If a new user is created by WordPress, a password will be randomly generated. Manually change the user\'s details if necessary.'); ?></p> 
    157157        <?php 
    158158 
     
    205205 
    206206                if ( $post_id = post_exists($post->post_title, '', $post->post_date) ) { 
    207207                        echo '<li>'; 
    208                         printf(__('Post <i>%s</i> already exists.'), stripslashes($post->post_title)); 
     208                        printf(__('Post <em>%s</em> already exists.'), stripslashes($post->post_title)); 
    209209                } else { 
    210210                        echo '<li>'; 
    211                         printf(__('Importing post <i>%s</i>...'), stripslashes($post->post_title)); 
     211                        printf(__('Importing post <em>%s</em>...'), stripslashes($post->post_title)); 
    212212 
    213213                        if ( '' != trim( $post->extended ) ) 
    214214                                        $post->post_content .= "\n<!--more-->\n$post->extended"; 
  • wp-admin/import/blogware.php

     
    8686 
    8787                        echo '<li>'; 
    8888                        if ($post_id = post_exists($post_title, $post_content, $post_date)) { 
    89                                 printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title)); 
     89                                printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title)); 
    9090                        } else { 
    91                                 printf(__('Importing post <i>%s</i>...'), stripslashes($post_title)); 
     91                                printf(__('Importing post <em>%s</em>...'), stripslashes($post_title)); 
    9292                                $postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); 
    9393                                $post_id = wp_insert_post($postdata); 
    9494                                if ( is_wp_error( $post_id ) ) { 
  • wp-admin/import/wordpress.php

     
    381381 
    382382                if ( $post_exists ) { 
    383383                        echo '<li>'; 
    384                         printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title)); 
     384                        printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title)); 
    385385                } else { 
    386386 
    387387                        // If it has parent, process parent first. 
     
    412412                                        return $post_id; 
    413413                        } 
    414414                        else { 
    415                                 printf(__('Importing post <i>%s</i>...'), stripslashes($post_title)); 
     415                                printf(__('Importing post <em>%s</em>...'), stripslashes($post_title)); 
    416416                                $comment_post_ID = $post_id = wp_insert_post($postdata); 
    417417                        } 
    418418 
     
    516516 
    517517        function process_attachment($postdata, $remote_url) { 
    518518                if ($this->fetch_attachments and $remote_url) { 
    519                         printf( __('Importing attachment <i>%s</i>... '), htmlspecialchars($remote_url) ); 
     519                        printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) ); 
    520520                        $upload = $this->fetch_remote_file($postdata, $remote_url); 
    521521                        if ( is_wp_error($upload) ) { 
    522522                                printf( __('Remote file error: %s'), htmlspecialchars($upload->get_error_message()) ); 
     
    551551                        return $post_id; 
    552552                } 
    553553                else { 
    554                         printf( __('Skipping attachment <i>%s</i>'), htmlspecialchars($remote_url) ); 
     554                        printf( __('Skipping attachment <em>%s</em>'), htmlspecialchars($remote_url) ); 
    555555                } 
    556556        } 
    557557 
  • wp-admin/user-edit.php

     
    240240<input type="text" name="jabber" value="<?php echo $profileuser->jabber ?>" /></label> 
    241241</p> 
    242242</fieldset> 
    243 <br clear="all" /> 
     243<br style="clear: both;" /> 
    244244<fieldset> 
    245245<legend><?php $is_profile_page? _e('About Yourself') : _e('About the user'); ?></legend> 
    246246<p class="desc"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.'); ?></p> 
     
    276276        } 
    277277?> 
    278278 
    279 <br clear="all" /> 
    280         <table width="99%"  border="0" cellspacing="2" cellpadding="3" class="editform"> 
     279<br style="clear: both;" /> 
     280        <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform"> 
    281281                <?php 
    282282                if(count($profileuser->caps) > count($profileuser->roles)): 
    283283                ?> 
  • wp-admin/link-manager.php

     
    120120 
    121121<?php 
    122122$link_columns = array( 
    123         'name'       => '<th width="15%">' . __('Name') . '</th>', 
     123        'name'       => '<th style="width: 15%;">' . __('Name') . '</th>', 
    124124        'url'       => '<th>' . __('URL') . '</th>', 
    125125        'categories' => '<th>' . __('Categories') . '</th>', 
    126126        'rel'      => '<th style="text-align: center">' . __('rel') . '</th>', 
     
    196196                                        ?><td><?php echo $link->link_rel; ?></td><?php 
    197197                                        break; 
    198198                                case 'visible': 
    199                                         ?><td align='center'><?php echo $visible; ?></td><?php 
     199                                        ?><td style='text-align: center;'><?php echo $visible; ?></td><?php 
    200200                                        break; 
    201201                                default: 
    202202                                        ?>