/
deprecated.php
70 lines (63 loc) · 1.54 KB
/
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
64
65
66
67
68
69
70
<?php
/**
* Contain list of function which are deprecated
*
* @package AnsPress
* @author Rahul Aryan <rah12@live.com>
* @license GPL-3.0+
* @link https://anspress.net
* @copyright 2014 Rahul Aryan
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( '_deprecated_function' ) ) {
require_once ABSPATH . WPINC . '/functions.php';
}
/**
* Return hover card attributes.
*
* @param mixed $_post Post ID, Object or null.
* @return void
*
* @deprecated 4.1.13
*/
function ap_get_hover_card_attr( $_post = null ) { // phpcs:ignore
_deprecated_function( __FUNCTION__, '4.1.13' );
}
/**
* Echo hover card attributes.
*
* @param mixed $_post Post ID, Object or null.
* @deprecated 4.1.13
*/
function ap_hover_card_attr( $_post = null ) { // phpcs:ignore
_deprecated_function( __FUNCTION__, '4.1.13' );
}
/**
* Return response with type and message.
*
* @param string $id messge id.
* @param bool $only_message return message string instead of array.
* @return string
*
* @deprecated 4.4.0
*/
function ap_responce_message( $id, $only_message = false ) {
_deprecated_function( __FUNCTION__, '4.4.0', 'ap_response_message()' );
return ap_response_message( $id, $only_message );
}
if ( ! function_exists( 'ap_verify_nonce' ) ) {
/**
* Verify the __nonce field.
*
* @param string $action Action.
* @return bool
*
* @deprecated 4.4.0
*/
function ap_verify_nonce( $action ) {
_deprecated_function( __FUNCTION__, '4.4.0', 'anspress_verify_nonce()' );
return anspress_verify_nonce( $action );
}
}