PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | libraries/csstidy/class.csstidy.php +5 -3 3.3.1 → 3.4 View file →
@@ -7,8 +7,10 @@
7 7 * @author Florian Schmitz, Brett Zamir, Nikolay Matsievsky, Cedric Morin, Christopher Finke, Mark Scherer, Tobias Bäthge
8 8 * @since 1.0.0
9 9 */
10 10
11 +declare(strict_types=1);
12 +
11 13 // Prohibit direct script loading.
12 14 defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
13 15
14 16 /**
@@ -507,9 +509,9 @@
507 509 * @return bool Whether the CSS code could be parsed successfully.
508 510 */
509 511 public function parse( string $a_string ): bool {
510 512 // Temporarily set locale to en_US in order to handle floats properly.
511 - $old = @setlocale( LC_ALL, 0 ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
513 + $old = @setlocale( LC_ALL, '0' ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
512 514 @setlocale( LC_ALL, 'C' ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
513 515
514 516 $at_rules = &$this->data['csstidy']['at_rules'];
515 517 $quoted_string_properties = &$this->data['csstidy']['quoted_string_properties'];
@@ -610,9 +612,9 @@
610 612 }
611 613 } elseif ( '{' === $a_string[ $i ] ) {
612 614 $this->status = 'ip';
613 615 if ( '' === $this->at ) {
614 - $this->at = $this->css_new_media_section( $this->at, self::DEFAULT_AT );
616 + $this->at = $this->css_new_media_section( $this->at, (string) self::DEFAULT_AT );
615 617 }
616 618 $this->selector = $this->css_new_selector( $this->at, $this->selector );
617 619 $this->_add_token( self::SEL_START, $this->selector );
618 620 $this->added = false;
@@ -738,9 +740,9 @@
738 740 $this->sub_value .= $a_string[ $i ];
739 741 }
740 742 if ( ( '}' === $a_string[ $i ] || ';' === $a_string[ $i ] || $pn ) && ! empty( $this->selector ) ) {
741 743 if ( '' === $this->at ) {
742 - $this->at = $this->css_new_media_section( $this->at, self::DEFAULT_AT );
744 + $this->at = $this->css_new_media_section( $this->at, (string) self::DEFAULT_AT );
743 745 }
744 746
745 747 // Case settings.
746 748 if ( $this->get_cfg( 'lowercase_s' ) ) {