C:\xampp\htdocs\landing\wp-content\plugins\wordpress-seo\src\deprecated\admin\extension.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin
 */

// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.
/**
 * Represents the values for a single Yoast Premium extension plugin.
 *
 * @deprecated 15.4
 */
class WPSEO_Extension {

    
/**
     * Holds the extension config.
     *
     * @var array
     */
    
protected $config = [];

    
/**
     * WPSEO_Extension constructor.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @param array $config The config to use.
     */
    
public function __construct( array $config ) {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        
$this->config $config;
    }

    
/**
     * Returns the product title.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return string The set title.
     */
    
public function get_title() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        return 
$this->config['title'];
    }

    
/**
     * Returns the product title to display.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return string The title to display on the license page.
     */
    
public function get_display_title() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        return empty( 
$this->config['display_title'] ) ? $this->config['title'] : $this->config['display_title'];
    }

    
/**
     * Returns URL to the page where the product can be bought.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return string The buy url.
     */
    
public function get_buy_url() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        return 
$this->config['buyUrl'];
    }

    
/**
     * Returns URL to the page with more info.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return string The url to the info page.
     */
    
public function get_info_url() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        return 
$this->config['infoUrl'];
    }

    
/**
     * Returns the image.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return string The image.
     */
    
public function get_image() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        return 
$this->config['image'];
    }

    
/**
     * Returns the buy button value if set, otherwise fallback to the title.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return string The buy button.
     */
    
public function get_buy_button() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        if ( isset( 
$this->config['buy_button'] ) ) {
            return 
$this->config['buy_button'];
        }

        return 
$this->config['title'];
    }

    
/**
     * Returns the benefits.
     *
     * @deprecated 15.4
     * @codeCoverageIgnore
     *
     * @return array The array with benefits.
     */
    
public function get_benefits() {
        
_deprecated_function__METHOD__'WPSEO 15.4' );

        return 
$this->config['benefits'];
    }
}
// phpcs:enable
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586