Ticket #4243 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Properly handle uploaded files for blogroll imports

Reported by: apokalyptik Assigned to: anonymous
Priority: normal Milestone: 2.3
Component: Administration Version:
Severity: normal Keywords:
Cc:

Description

Fix 1 since wp_remote_fopen does not properly handle local files versus remote urls (and by the name of the function probably should not do so anyhow ("remote" and all that) Uploading a file instead of linking to a file already on the web for import caused $opml to be set as boolean false. This in turn was not very parse-able by the xml routines. So I wrapped the setting of $opml in an if statement that would use file_get_contents() for local files and wp_remote_fopen() for remote files.


Fix 2 unlinking an uploaded file for import should pass the file through the wp_delete_file filter.

Attachments

changeset_trunk_wp-admin_link-import.php.diff (0.6 kB) - added by apokalyptik on 05/10/07 17:15:24.

Change History

05/10/07 17:15:24 changed by apokalyptik

  • attachment changeset_trunk_wp-admin_link-import.php.diff added.

05/10/07 21:21:37 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [5438]) Handle local and remote blogroll imports. Props apokalyptik. fixes #4243 for 2.2

05/10/07 21:21:54 changed by ryan

(In [5439]) Handle local and remote blogroll imports. Props apokalyptik. fixes #4243 for 2.3

05/11/07 23:06:36 changed by rob1n

  • milestone changed from 2.4 to 2.3.