Changeset 514847
- Timestamp:
- 03/05/2012 06:36:08 PM (14 years ago)
- Location:
- wp-html-sitemap/trunk
- Files:
-
- 11 edited
-
css/sitemap.css (modified) (1 diff)
-
css/style.css (modified) (1 diff)
-
inc/AdminPage.php (modified) (1 diff)
-
inc/Exception.php (modified) (1 diff)
-
inc/Map.php (modified) (1 diff)
-
inc/Options.php (modified) (1 diff)
-
inc/SitemapShortcode.php (modified) (1 diff)
-
inc/Utilities.php (modified) (1 diff)
-
js/wp-html-sitemap.options.js (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
wp-html-sitemap.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-html-sitemap/trunk/css/sitemap.css
r514819 r514847 1 1 /* 2 WP HTML Sitemap v1.1 2 WP HTML Sitemap v1.1.1 3 3 Contact: Bill Edgar (bill.edgar@oaktondata.com) 4 4 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/css/style.css
r514819 r514847 1 1 /* 2 WP HTML Sitemap v1.1 2 WP HTML Sitemap v1.1.1 3 3 Contact: Bill Edgar (bill.edgar@oaktondata.com) 4 4 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/inc/AdminPage.php
r514819 r514847 2 2 3 3 /* 4 WP HTML Sitemap v1.1 4 WP HTML Sitemap v1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/inc/Exception.php
r514819 r514847 2 2 3 3 /* 4 WP HTML Sitemap v1.1 4 WP HTML Sitemap v1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/inc/Map.php
r514819 r514847 2 2 3 3 /* 4 WP HTML Sitemap v1.1 4 WP HTML Sitemap v1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/inc/Options.php
r514819 r514847 2 2 3 3 /* 4 WP HTML Sitemap v1.1 4 WP HTML Sitemap v1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/inc/SitemapShortcode.php
r514819 r514847 2 2 3 3 /* 4 WP HTML Sitemap v1.1 4 WP HTML Sitemap v1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/inc/Utilities.php
r514819 r514847 2 2 3 3 /* 4 WP HTML Sitemap v1.1 4 WP HTML Sitemap v1.1.1 5 5 Contact: Bill Edgar (bill.edgar@oaktondata.com) 6 6 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/js/wp-html-sitemap.options.js
r514819 r514847 1 1 /* 2 WP HTML Sitemap v1.1 2 WP HTML Sitemap v1.1.1 3 3 Contact: Bill Edgar (bill.edgar@oaktondata.com) 4 4 http://www.oaktondata.com/wordpress-html-sitemap -
wp-html-sitemap/trunk/readme.txt
r514819 r514847 5 5 Requires at least: 2.9 6 6 Tested up to: 3.3.1 7 Stable tag: 1.1 7 Stable tag: 1.1.1 8 8 9 9 Add a WordPress HTML sitemap that is fully customizable to improve your website SEO and enable easy navigation for your users. … … 72 72 == Changelog == 73 73 74 = 1.1.1 = 75 * Removed dependency on updated strstr function in PHP v5.3 which caused the plugin to crash for anyone running an earlier version of PHP. 76 74 77 = 1.1 = 75 78 * Updated default options to avoid conflicts with XML sitemaps in WordPress document root. … … 82 85 == Upgrade Notice == 83 86 87 = 1.1.1 = 88 * Bug fix for anyone running PHP v5.2 or earlier, the plugin should now function properly (rather than crash). 89 84 90 = 1.1 = 85 91 * Updated default options to avoid conflicts with XML sitemaps, minor bug fixes, and enhanced error handling. -
wp-html-sitemap/trunk/wp-html-sitemap.php
r514819 r514847 5 5 Plugin Name: WP HTML Sitemap 6 6 Plugin URI: http://oaktondata.com/wordpress-html-sitemap/ 7 Version: 1.1 7 Version: 1.1.1 8 8 Author: Bill Edgar 9 9 Author URI: http://oaktondata.com … … 146 146 $this->include_wp_functions(); 147 147 } catch ( wp_html_sitemap_Exception $e ) { 148 echo $e->get Message();148 echo $e->getError(); 149 149 die( "<p>WP HTML Sitemap exiting.</p>" ); 150 150 } … … 247 247 248 248 function include_wp_functions() { 249 $wp_admin_includes = strstr( WP_HTML_SITEMAP_INCLUDES, 'wp-content', true ) . 'wp-admin/includes/'; 249 // check include path for wp-content 250 if ( preg_match( "/wp-content/", WP_HTML_SITEMAP_INCLUDES ) ) { 251 // set admin include path 252 $paths = preg_split( "/wp-content/", WP_HTML_SITEMAP_INCLUDES ); 253 $wp_admin_includes = $paths[0] . 'wp-admin/includes/'; 254 // otherwise path is not recognized, throw error 255 } else { 256 throw new wp_html_sitemap_Exception( 'wp-content path not found in ' . WP_HTML_SITEMAP_INCLUDES ); 257 } 258 // check for theme.php file existence 250 259 if ( is_file( $wp_admin_includes . 'theme.php' ) ) { 260 // check for get_page_templates function existence 251 261 if ( !function_exists( 'get_page_templates' ) ) { 262 // include get_page_templates function if necessary 252 263 if ( !include_once( $wp_admin_includes . 'theme.php' ) ) { // for WP get_page_templates function 253 264 throw new wp_html_sitemap_Exception( 'get_page_templates function not defined.</p>' ); 254 265 } 255 266 } 267 // otherwise path is incorrect, throw error 256 268 } else { 257 269 throw new wp_html_sitemap_Exception( $wp_admin_includes . 'theme.php file not found.' ); 258 270 } 271 // check for plugin.php file existence 259 272 if ( is_file( $wp_admin_includes . 'plugin.php' ) ) { 273 // check for get_plugins function existence 260 274 if ( !function_exists( 'get_plugins' ) ) { 275 // load get_plugins function if necessary 261 276 if ( !include_once( $wp_admin_includes . 'plugin.php' ) ) { // for WP get_plugins function 262 277 throw new wp_html_sitemap_Exception( 'get_plugins function not defined</p>' ); 263 278 } 264 } else { 265 throw new wp_html_sitemap_Exception( $wp_admin_includes . 'plugin.php file not found.' ); 266 } 279 } 280 // otherwise path is incorrect, throw error 281 } else { 282 throw new wp_html_sitemap_Exception( $wp_admin_includes . 'plugin.php file not found.' ); 267 283 } 268 284 }
Note: See TracChangeset
for help on using the changeset viewer.