WordPress.org

Make WordPress Core

Ticket #10182: wpXhtmlIssues.patch

File wpXhtmlIssues.patch, 1.6 KB (added by brettz95, 9 years ago)

Patches for application/xhtml+xml well-formedness

  • wp-admin/options-general.php

     
    188188                }
    189189        }
    190190        ?>
     191<?php endif; ?>
    191192        </span>
    192 <?php endif; ?>
    193193</td>
    194194
    195195<?php endif; ?>
  • wp-admin/options-misc.php

     
    6060</label>
    6161</th>
    6262</tr>
    63 <tr>
    6463
    6564</table>
    6665
  • wp-includes/comment-template.php

     
    481481                $link = get_permalink( $comment->comment_post_ID );
    482482        }
    483483
    484         return apply_filters( 'get_comment_link', $link . '#comment-' . $comment->comment_ID, $comment, $args );
     484        return apply_filters( 'get_comment_link', urlencode($link) . '#comment-' . $comment->comment_ID, $comment, $args );
    485485}
    486486
    487487/**
  • wp-includes/rewrite.php

     
    14811481                        //add the rules for this dir to the accumulating $post_rewrite
    14821482                        $post_rewrite = array_merge($rewrite, $post_rewrite);
    14831483                } //foreach ($dir)
    1484                 return $post_rewrite; //the finished rules. phew!
     1484                return urlencode($post_rewrite); //the finished rules. phew!
    14851485        }
    14861486
    14871487        /**