X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/11be8dc178e77d0b46189bbd8e33a216a9b90942..c55863f11e8589bf8d4a5698bf15752406654f1c:/wp-admin/link-parse-opml.php?ds=sidebyside diff --git a/wp-admin/link-parse-opml.php b/wp-admin/link-parse-opml.php index 7d03a153..f24f420d 100644 --- a/wp-admin/link-parse-opml.php +++ b/wp-admin/link-parse-opml.php @@ -6,12 +6,12 @@ * @subpackage Administration */ -/** Load WordPress Bootstrap */ -require_once('../wp-load.php'); +if ( ! defined('ABSPATH') ) + die(); global $opml, $map; -// columns we wish to find are: link_url, link_name, link_target, link_description +// columns we wish to find are: link_url, link_name, link_target, link_description // we need to map XML attribute names to our columns $opml_map = array('URL' => 'link_url', 'HTMLURL' => 'link_url', @@ -27,7 +27,7 @@ $map = $opml_map; /** * XML callback function for the start of a new XML tag. * - * @since unknown + * @since 0.71 * @access private * * @uses $updated_timestamp Not used inside function. @@ -68,7 +68,7 @@ function startElement($parser, $tagName, $attrs) { /** * XML callback function that is called at the end of a XML tag. * - * @since unknown + * @since 0.71 * @access private * @package WordPress * @subpackage Dummy @@ -94,4 +94,3 @@ if (!xml_parse($xml_parser, $opml, true)) { // Free up memory used by the XML parser xml_parser_free($xml_parser); -?>