mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-01-30 21:47:31 +00:00
Remove unused globals from link-parse-opml.php after [28743].
Props SergeyBiryukov. Fixes #27881. git-svn-id: https://develop.svn.wordpress.org/trunk@28786 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
33275a0826
commit
76ccf2a956
@ -9,21 +9,7 @@
|
||||
if ( ! defined('ABSPATH') )
|
||||
die();
|
||||
|
||||
global $opml, $map;
|
||||
|
||||
// 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;
|
||||
global $opml;
|
||||
|
||||
/**
|
||||
* XML callback function for the start of a new XML tag.
|
||||
@ -31,9 +17,6 @@ $map = $opml_map;
|
||||
* @since 0.71
|
||||
* @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 $urls
|
||||
* @global array $targets
|
||||
|
||||
Loading…
Reference in New Issue
Block a user