Check to see if any pages exist when generating page rewrite rules. Bug 345. Patch from MC_incubus.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-10-08 00:16:44 +00:00
parent d1d02a30bb
commit 943351b556

View File

@ -521,6 +521,7 @@ function generate_page_rewrite_rules() {
$page_rewrite_rules = array();
if ($posts) {
foreach ($posts as $post) {
// URI => page name
$uri = get_page_uri($post->ID);
@ -532,6 +533,7 @@ function generate_page_rewrite_rules() {
save_mod_rewrite_rules();
}
}
function the_quicktags () {
// Browser detection sucks, but until Safari supports the JS needed for this to work people just assume it's a bug in WP