-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewspaper-x-deprecated.php
64 lines (56 loc) · 1.33 KB
/
newspaper-x-deprecated.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
58
59
60
61
62
63
<?php
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Due to the fact that we changed how this theme works,
* we need to create a separate file to keep all the
* deprecated functions
*/
/**
* @todo - change newspaper_x posts navigation to default wordpress
*
* @param array $args
*/
/**
* @deprecated, please use Newspaper_X_Helper::posted_on(); instead
*/
function newspaper_x_posted_on( $element = 'default' ) {
Newspaper_X_Helper::posted_on( $element );
}
/**
* @deprecated, please use Newspaper_X_Helper::add_breadcrumbs(); instead
*/
function newspaper_x_breadcrumbs() {
Newspaper_X_Helper::add_breadcrumbs();
}
/**
* @param string $format
*
* @deprecated, please use Newspaper_X_Helper::format_icon(); instead
*/
function newspaper_x_format_icon( $format = 'standard' ) {
echo Newspaper_X_Helper::format_icon( $format );
}
/**
* @return bool
*
* @deprecated, please use Newspaper_X_Helper::on_iis(); instead
*/
function newspaper_x_on_iis() {
return Newspaper_X_Helper::on_iis();
}
/**
* Helper function to determine what kind of archive page we are viewing and return an array
*/
function newspaper_x_check_archive() {
return Newspaper_X_Helper::check_archive();
}
/**
* @param $array
*
* @return WP_Query
*/
function newspaper_x_get_first_posts( $array ) {
return Newspaper_X_Helper::get_first_posts( $array );
}