Ticket #27881: 27881.opml.diff
File 27881.opml.diff, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/link-parse-opml.php
9 9 if ( ! defined('ABSPATH') ) 10 10 die(); 11 11 12 global $opml , $map;12 global $opml; 13 13 14 // columns we wish to find are: link_url, link_name, link_target, link_description15 // we need to map XML attribute names to our columns16 $opml_map = array(17 'URL' => 'link_url',18 'HTMLURL' => 'link_url',19 'TEXT' => 'link_name',20 'TITLE' => 'link_name',21 'TARGET' => 'link_target',22 'DESCRIPTION' => 'link_description',23 'XMLURL' => 'link_rss'24 );25 26 $map = $opml_map;27 28 14 /** 29 15 * XML callback function for the start of a new XML tag. 30 16 * … … 31 17 * @since 0.71 32 18 * @access private 33 19 * 34 * @uses $updated_timestamp Not used inside function.35 * @uses $all_links Not used inside function.36 * @uses $map Stores names of attributes to use.37 20 * @global array $names 38 21 * @global array $urls 39 22 * @global array $targets