PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/system-info/reporters/server.php +5 -5 4.3.0 → 3.25.2 View file →
@@ -314,9 +314,9 @@
314 314 * @type bool $warning Whether to display a warning. True if some required
315 315 * folders don't have writing permissions, False otherwise.
316 316 * }
317 317 */
318 - public function get_write_permissions(): array {
318 + public function get_write_permissions() : array {
319 319 $paths_to_check = [
320 320 static::KEY_PATH_HTACCESS_FILE => $this->get_system_path( static::KEY_PATH_HTACCESS_FILE ),
321 321 static::KEY_PATH_UPLOADS_DIR => $this->get_system_path( static::KEY_PATH_UPLOADS_DIR ),
322 322 static::KEY_PATH_ELEMENTOR_UPLOADS_DIR => $this->get_system_path( static::KEY_PATH_ELEMENTOR_UPLOADS_DIR ),
@@ -347,9 +347,9 @@
347 347 }
348 348
349 349 return [
350 350 'value' => $value,
351 - 'warning' => (bool) $write_problems,
351 + 'warning' => ! ! $write_problems,
352 352 ];
353 353 }
354 354
355 355 /**
@@ -416,9 +416,9 @@
416 416 /**
417 417 * @param $paths [] Paths to check permissions.
418 418 * @return array []{exists: bool, read: bool, write: bool, execute: bool}
419 419 */
420 - public function get_paths_permissions( $paths ): array {
420 + public function get_paths_permissions( $paths ) : array {
421 421 $permissions = [];
422 422
423 423 foreach ( $paths as $key_path => $path ) {
424 424 $permissions[ $key_path ] = $this->get_path_permissions( $path );
@@ -432,9 +432,9 @@
432 432 *
433 433 * @param $path_key
434 434 * @return string
435 435 */
436 - public function get_system_path( $path_key ): string {
436 + public function get_system_path( $path_key ) : string {
437 437 switch ( $path_key ) {
438 438 case static::KEY_PATH_WP_CONTENT_DIR:
439 439 return WP_CONTENT_DIR;
440 440
@@ -463,9 +463,9 @@
463 463 *
464 464 * @param $path
465 465 * @return array{exists: bool, read: bool, write: bool, execute: bool}
466 466 */
467 - public function get_path_permissions( $path ): array {
467 + public function get_path_permissions( $path ) : array {
468 468 if ( empty( $path ) ) {
469 469 return [
470 470 'exists' => false,
471 471 'read' => false,