| @@ -3,8 +3,13 @@ | ||
| 3 | 3 | * Jetpack comments admin menu file. |
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | + | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 7 | 12 | /** |
| 8 | 13 | * Class Jetpack_Comments_Settings |
| 9 | 14 | * This class represents the comments settings functionality. |
| 10 | 15 | */ |
| @@ -63,9 +68,9 @@ | ||
| 63 | 68 | |
| 64 | 69 | /** |
| 65 | 70 | * Set any global variables or class variables |
| 66 | 71 | * |
| 67 | - * @since JetpackComments (1.4) | |
| 72 | + * @since 1.4 | |
| 68 | 73 | */ |
| 69 | 74 | protected function setup_globals() { |
| 70 | 75 | // Default option values. |
| 71 | 76 | $this->default_greeting = __( 'Leave a Reply', 'jetpack' ); |
| @@ -82,9 +87,9 @@ | ||
| 82 | 87 | |
| 83 | 88 | /** |
| 84 | 89 | * Add the Jetpack settings to WordPress's discussions page |
| 85 | 90 | * |
| 86 | - * @since JetpackComments (1.4) | |
| 91 | + * @since 1.4 | |
| 87 | 92 | */ |
| 88 | 93 | public function add_settings() { |
| 89 | 94 | |
| 90 | 95 | // Create the section. |
| @@ -132,9 +137,9 @@ | ||
| 132 | 137 | |
| 133 | 138 | /** |
| 134 | 139 | * Discussions setting section blurb |
| 135 | 140 | * |
| 136 | - * @since JetpackComments (1.4) | |
| 141 | + * @since 1.4 | |
| 137 | 142 | */ |
| 138 | 143 | public function comment_form_settings_section() { |
| 139 | 144 | ?> |
| 140 | 145 | |
| @@ -145,9 +150,9 @@ | ||
| 145 | 150 | |
| 146 | 151 | /** |
| 147 | 152 | * Custom Comment Greeting Text |
| 148 | 153 | * |
| 149 | - * @since JetpackComments (1.4) | |
| 154 | + * @since 1.4 | |
| 150 | 155 | */ |
| 151 | 156 | public function comment_form_greeting_setting() { |
| 152 | 157 | |
| 153 | 158 | // The greeting. |
| @@ -162,9 +167,9 @@ | ||
| 162 | 167 | |
| 163 | 168 | /** |
| 164 | 169 | * Sanitize the clever comment greeting |
| 165 | 170 | * |
| 166 | - * @since JetpackComments (1.4) | |
| 171 | + * @since 1.4 | |
| 167 | 172 | * @param string $val The contact form greeting string. |
| 168 | 173 | * @return string |
| 169 | 174 | */ |
| 170 | 175 | public function comment_form_greeting_sanitize( $val ) { |
| @@ -180,9 +185,9 @@ | ||
| 180 | 185 | |
| 181 | 186 | /** |
| 182 | 187 | * Comment Form Color Scheme Setting |
| 183 | 188 | * |
| 184 | - * @since JetpackComments (1.4) | |
| 189 | + * @since 1.4 | |
| 185 | 190 | */ |
| 186 | 191 | public function comment_form_color_scheme_setting() { |
| 187 | 192 | |
| 188 | 193 | // The color scheme. |
| @@ -209,9 +214,9 @@ | ||
| 209 | 214 | |
| 210 | 215 | /** |
| 211 | 216 | * Sanitize the color scheme |
| 212 | 217 | * |
| 213 | - * @since JetpackComments (1.4) | |
| 218 | + * @since 1.4 | |
| 214 | 219 | * @param string $val The color scheme string. |
| 215 | 220 | * @return string |
| 216 | 221 | */ |
| 217 | 222 | public function comment_form_color_scheme_sanitize( $val ) { |