PluginProbe
Polylang / 2.8
Polylang v2.8
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | install/install.php +1 -11 3.0.32.8 View file →
@@ -13,10 +13,8 @@
13 13 /**
14 14 * Checks min PHP and WP version, displays a notice if a requirement is not met.
15 15 *
16 16 * @since 2.6.7
17 - *
18 - * @return bool
19 17 */
20 18 public function can_activate() {
21 19 global $wp_version;
22 20
@@ -36,10 +34,8 @@
36 34 /**
37 35 * Displays a notice if PHP min version is not met.
38 36 *
39 37 * @since 2.6.7
40 - *
41 - * @return void
42 38 */
43 39 public function php_version_notice() {
44 40 load_plugin_textdomain( 'polylang' ); // Plugin i18n.
45 41
@@ -58,10 +54,8 @@
58 54 /**
59 55 * Displays a notice if WP min version is not met.
60 56 *
61 57 * @since 2.6.7
62 - *
63 - * @return void
64 58 */
65 59 public function wp_version_notice() {
66 60 global $wp_version;
67 61
@@ -83,9 +77,9 @@
83 77 * Get default Polylang options
84 78 *
85 79 * @since 1.8
86 80 *
87 - * @return array
81 + * return array
88 82 */
89 83 public static function get_default_options() {
90 84 return array(
91 85 'browser' => 1, // Default language for the front page is set by browser preference
@@ -107,10 +101,8 @@
107 101 /**
108 102 * Plugin activation
109 103 *
110 104 * @since 0.5
111 - *
112 - * @return void
113 105 */
114 106 protected function _activate() {
115 107 if ( $options = get_option( 'polylang' ) ) {
116 108 // Check if we will be able to upgrade
@@ -138,10 +130,8 @@
138 130 /**
139 131 * Plugin deactivation
140 132 *
141 133 * @since 0.5
142 - *
143 - * @return void
144 134 */
145 135 protected function _deactivate() {
146 136 delete_option( 'rewrite_rules' ); // Don't use flush_rewrite_rules at network activation. See #32471
147 137 }