X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be15bd505d66a91e2c80062190b13e315a04a9..ac7339a398e6df50f722bc9616291ce5447d8e5e:/wp-admin/options-permalink.php diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index d086fdc6..0d241ae8 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -7,7 +7,7 @@ */ /** WordPress Administration Bootstrap */ -require_once('./admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'manage_options' ) ) wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); @@ -41,9 +41,9 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '
' . __('For more information:') . '
' . - '' . __('Documentation on Permalinks Settings') . '
' . - '' . __('Documentation on Using Permalinks') . '
' . - '' . __('Support Forums') . '
' + '' . __('Documentation on Permalinks Settings') . '
' . + '' . __('Documentation on Using Permalinks') . '
' . + '' . __('Support Forums') . '
' ); /** @@ -54,7 +54,6 @@ get_current_screen()->set_help_sidebar( function options_permalink_add_js() { ?> mod_rewrite_rules() ) ); + $update_required = ( $new_rules !== $existing_rules ); + } } if ( $wp_rewrite->using_index_permalinks() ) @@ -143,20 +148,24 @@ flush_rewrite_rules(); require( ABSPATH . 'wp-admin/admin-header.php' ); if ( ! empty( $_GET['settings-updated'] ) ) : ?> -