Make WordPress Core

Ticket #27881: 27881.opml.diff

File 27881.opml.diff, 1.1 KB (added by SergeyBiryukov, 9 years ago)
  • src/wp-admin/link-parse-opml.php

     
    99if ( ! defined('ABSPATH') )
    1010        die();
    1111
    12 global $opml, $map;
     12global $opml;
    1313
    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;
    27 
    2814/**
    2915 * XML callback function for the start of a new XML tag.
    3016 *
     
    3117 * @since 0.71
    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
    3922 * @global array $targets