Plugin Directory

Changeset 514847


Ignore:
Timestamp:
03/05/2012 06:36:08 PM (14 years ago)
Author:
wmsedgar
Message:

Committing version 1.1.1.

Location:
wp-html-sitemap/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • wp-html-sitemap/trunk/css/sitemap.css

    r514819 r514847  
    11/*
    2     WP HTML Sitemap v1.1
     2    WP HTML Sitemap v1.1.1
    33    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    44    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/css/style.css

    r514819 r514847  
    11/*
    2     WP HTML Sitemap v1.1
     2    WP HTML Sitemap v1.1.1
    33    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    44    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/inc/AdminPage.php

    r514819 r514847  
    22
    33/*
    4     WP HTML Sitemap v1.1
     4    WP HTML Sitemap v1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/inc/Exception.php

    r514819 r514847  
    22
    33/*
    4     WP HTML Sitemap v1.1
     4    WP HTML Sitemap v1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/inc/Map.php

    r514819 r514847  
    22
    33/*
    4     WP HTML Sitemap v1.1
     4    WP HTML Sitemap v1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/inc/Options.php

    r514819 r514847  
    22
    33/*
    4     WP HTML Sitemap v1.1
     4    WP HTML Sitemap v1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/inc/SitemapShortcode.php

    r514819 r514847  
    22
    33/*
    4     WP HTML Sitemap v1.1
     4    WP HTML Sitemap v1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/inc/Utilities.php

    r514819 r514847  
    22
    33/*
    4     WP HTML Sitemap v1.1
     4    WP HTML Sitemap v1.1.1
    55    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    66    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/js/wp-html-sitemap.options.js

    r514819 r514847  
    11/*
    2     WP HTML Sitemap v1.1
     2    WP HTML Sitemap v1.1.1
    33    Contact: Bill Edgar (bill.edgar@oaktondata.com)
    44    http://www.oaktondata.com/wordpress-html-sitemap
  • wp-html-sitemap/trunk/readme.txt

    r514819 r514847  
    55Requires at least: 2.9
    66Tested up to: 3.3.1
    7 Stable tag: 1.1
     7Stable tag: 1.1.1
    88
    99Add a WordPress HTML sitemap that is fully customizable to improve your website SEO and enable easy navigation for your users.
     
    7272== Changelog ==
    7373
     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
    7477= 1.1 =
    7578* Updated default options to avoid conflicts with XML sitemaps in WordPress document root.
     
    8285== Upgrade Notice ==
    8386
     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
    8490= 1.1 =
    8591* 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  
    55    Plugin Name: WP HTML Sitemap
    66    Plugin URI: http://oaktondata.com/wordpress-html-sitemap/
    7     Version: 1.1
     7    Version: 1.1.1
    88    Author: Bill Edgar
    99    Author URI: http://oaktondata.com
     
    146146                $this->include_wp_functions();
    147147            } catch ( wp_html_sitemap_Exception $e ) {
    148                 echo $e->getMessage();
     148                echo $e->getError();
    149149                die( "<p>WP HTML Sitemap exiting.</p>" );
    150150            }
     
    247247       
    248248        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
    250259            if ( is_file( $wp_admin_includes . 'theme.php' ) ) {
     260                // check for get_page_templates function existence
    251261                if ( !function_exists( 'get_page_templates' ) ) {
     262                    // include get_page_templates function if necessary
    252263                    if ( !include_once( $wp_admin_includes . 'theme.php' ) ) { // for WP get_page_templates function
    253264                        throw new wp_html_sitemap_Exception( 'get_page_templates function not defined.</p>' );
    254265                    }
    255266                }
     267            // otherwise path is incorrect, throw error
    256268            } else {
    257269                throw new wp_html_sitemap_Exception( $wp_admin_includes . 'theme.php file not found.' );
    258270            }
     271            // check for plugin.php file existence
    259272            if ( is_file( $wp_admin_includes . 'plugin.php' ) ) {
     273                // check for get_plugins function existence
    260274                if ( !function_exists( 'get_plugins' ) ) {
     275                    // load get_plugins function if necessary
    261276                    if ( !include_once( $wp_admin_includes . 'plugin.php' ) ) { // for WP get_plugins function
    262277                        throw new wp_html_sitemap_Exception( 'get_plugins function not defined</p>' );
    263278                    }
    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.' );
    267283            }
    268284        }
Note: See TracChangeset for help on using the changeset viewer.