| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | * |
| 66 | 66 | * @since 3.1.0 |
| 67 | 67 | * |
| 68 | 68 | * @param string $version |
| 69 | - * @param int $count | |
| 69 | + * @param int $count | |
| 70 | 70 | * |
| 71 | 71 | * @return string|false |
| 72 | 72 | */ |
| 73 | 73 | public function get_next_version( $version, $count = 1 ) { |
| @@ -226,20 +226,20 @@ | ||
| 226 | 226 | * Handles the deprecation process for functions. |
| 227 | 227 | * |
| 228 | 228 | * @since 3.1.0 |
| 229 | 229 | * |
| 230 | - * @param string $function_name | |
| 230 | + * @param string $function | |
| 231 | 231 | * @param string $version |
| 232 | - * @param string $replacement Optional. Default is '' | |
| 233 | - * @param string $base_version Optional. Default is `null` | |
| 232 | + * @param string $replacement Optional. Default is '' | |
| 233 | + * @param string $base_version Optional. Default is `null` | |
| 234 | 234 | * @throws \Exception Deprecation error. |
| 235 | 235 | */ |
| 236 | - public function deprecated_function( $function_name, $version, $replacement = '', $base_version = null ) { | |
| 237 | - $print_deprecated = $this->check_deprecation( $function_name, $version, $replacement, $base_version ); | |
| 236 | + public function deprecated_function( $function, $version, $replacement = '', $base_version = null ) { | |
| 237 | + $print_deprecated = $this->check_deprecation( $function, $version, $replacement, $base_version ); | |
| 238 | 238 | |
| 239 | 239 | if ( $print_deprecated ) { |
| 240 | 240 | // PHPCS - We need to echo special characters because they can exist in function calls. |
| 241 | - _deprecated_function( $function_name, esc_html( $version ), $replacement ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 241 | + _deprecated_function( $function, esc_html( $version ), $replacement ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 242 | 242 | } |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
| @@ -308,12 +308,12 @@ | ||
| 308 | 308 | * Do Deprecated Action |
| 309 | 309 | * |
| 310 | 310 | * A method used to run deprecated actions through Elementor's deprecation process. |
| 311 | 311 | * |
| 312 | - * @param string $hook | |
| 313 | - * @param array $args | |
| 314 | - * @param string $version | |
| 315 | - * @param string $replacement | |
| 312 | + * @param string $hook | |
| 313 | + * @param array $args | |
| 314 | + * @param string $version | |
| 315 | + * @param string $replacement | |
| 316 | 316 | * @param null|string $base_version |
| 317 | 317 | * |
| 318 | 318 | * @throws \Exception Deprecation error. |
| 319 | 319 | * @since 3.1.0 |
| @@ -332,12 +332,12 @@ | ||
| 332 | 332 | * Apply Deprecated Filter |
| 333 | 333 | * |
| 334 | 334 | * A method used to run deprecated filters through Elementor's deprecation process. |
| 335 | 335 | * |
| 336 | - * @param string $hook | |
| 337 | - * @param array $args | |
| 338 | - * @param string $version | |
| 339 | - * @param string $replacement | |
| 336 | + * @param string $hook | |
| 337 | + * @param array $args | |
| 338 | + * @param string $version | |
| 339 | + * @param string $replacement | |
| 340 | 340 | * @param null|string $base_version |
| 341 | 341 | * |
| 342 | 342 | * @return mixed |
| 343 | 343 | * @throws \Exception Deprecation error. |