Remove unused globals from `link-parse-opml.php` after [28743].
Props SergeyBiryukov. Fixes #27881. Built from https://develop.svn.wordpress.org/trunk@28786 git-svn-id: http://core.svn.wordpress.org/trunk@28599 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
378b4cd896
commit
5357fecf1a
|
@ -9,21 +9,7 @@
|
||||||
if ( ! defined('ABSPATH') )
|
if ( ! defined('ABSPATH') )
|
||||||
die();
|
die();
|
||||||
|
|
||||||
global $opml, $map;
|
global $opml;
|
||||||
|
|
||||||
// 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',
|
|
||||||
'TEXT' => 'link_name',
|
|
||||||
'TITLE' => 'link_name',
|
|
||||||
'TARGET' => 'link_target',
|
|
||||||
'DESCRIPTION' => 'link_description',
|
|
||||||
'XMLURL' => 'link_rss'
|
|
||||||
);
|
|
||||||
|
|
||||||
$map = $opml_map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XML callback function for the start of a new XML tag.
|
* XML callback function for the start of a new XML tag.
|
||||||
|
@ -31,9 +17,6 @@ $map = $opml_map;
|
||||||
* @since 0.71
|
* @since 0.71
|
||||||
* @access private
|
* @access private
|
||||||
*
|
*
|
||||||
* @uses $updated_timestamp Not used inside function.
|
|
||||||
* @uses $all_links Not used inside function.
|
|
||||||
* @uses $map Stores names of attributes to use.
|
|
||||||
* @global array $names
|
* @global array $names
|
||||||
* @global array $urls
|
* @global array $urls
|
||||||
* @global array $targets
|
* @global array $targets
|
||||||
|
|
Loading…
Reference in New Issue