Make WordPress Core


Ignore:
Timestamp:
06/20/2014 05:25:47 PM (10 years ago)
Author:
wonderboymusic
Message:

Remove unused globals from link-parse-opml.php after [28743].

Props SergeyBiryukov.
Fixes #27881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/link-parse-opml.php

    r28743 r28786  
    1010    die();
    1111
    12 global $opml, $map;
    13 
    14 // columns we wish to find are: link_url, link_name, link_target, link_description
    15 // we need to map XML attribute names to our columns
    16 $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;
     12global $opml;
    2713
    2814/**
     
    3218 * @access private
    3319 *
    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.
    3720 * @global array $names
    3821 * @global array $urls
Note: See TracChangeset for help on using the changeset viewer.