-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwp-links-opml.php
57 lines (51 loc) · 1.42 KB
/
wp-links-opml.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**
* Outputs the OPML XML format for getting the links defined in the link
* administration. This can be used to export links from one blog over to
* another. Links aren't exported by the Retraceur export, so this file handles
* that.
*
* This file is not added by default to Retraceur theme pages when outputting
* feed links. It will have to be added manually for browsers and users to pick
* up that this file exists.
*
* @deprecated 1.0.0 Retraceur removed the Link/Bookmark API.
*
* @package Retraceur
*/
require_once __DIR__ . '/wp-load.php';
_deprecated_file( basename( __FILE__ ), '1.0.0', '', '', true );
/**
* Fires in the OPML header.
*
* @since WP 3.0.0
* @deprecated 1.0.0 Retraceur removed the Link/Bookmark API.
*/
do_action_deprecated(
'opml_head',
array(),
'1.0.0',
'',
__( 'Link/bookmark manager is not supported in Retraceur.' )
);
/** This filter is documented in wp-includes/bookmark-template.php */
apply_filters_deprecated(
'link_category',
array( '' ),
'1.0.0',
'',
__( 'Link/bookmark manager is not supported in Retraceur.' )
);
/** This filter is documented in wp-includes/bookmark-template.php */
apply_filters_deprecated(
'link_title',
array( '' ),
'1.0.0',
'',
__( 'Link/bookmark manager is not supported in Retraceur.' )
);
wp_die(
'<h1>' . __( 'Retraceur does not provide the "Link/Boolmark" feature.' ) . '</h1>' .
'<p>' . __( 'Please use a plugin instead.' ) . '</p>',
500
);