diff --git a/admin/apple-actions/index/class-export.php b/admin/apple-actions/index/class-export.php index 867cd94e..8f490e7a 100644 --- a/admin/apple-actions/index/class-export.php +++ b/admin/apple-actions/index/class-export.php @@ -663,7 +663,7 @@ private function exclude_selectors( $content ) { libxml_use_internal_errors( true ); $dom = new \DOMDocument(); - $dom->loadHTML( ''. $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD ); + $dom->loadHTML( '' . $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD ); $xpath = new \DOMXPath( $dom ); libxml_clear_errors(); @@ -680,7 +680,7 @@ private function exclude_selectors( $content ) { if ( is_iterable( $nodes ) ) { foreach ( $nodes as $node ) { - $node->parentNode->removeChild( $node ); + $node->parentNode->removeChild( $node ); // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase } } } diff --git a/admin/settings/class-admin-apple-settings-section-advanced.php b/admin/settings/class-admin-apple-settings-section-advanced.php index 17bb48b8..a32e91a7 100644 --- a/admin/settings/class-admin-apple-settings-section-advanced.php +++ b/admin/settings/class-admin-apple-settings-section-advanced.php @@ -71,11 +71,12 @@ public function __construct( $page ) { 'description' => __( 'Enter a CSS class name that will be used to generate the Aside component. Do not prefix with a period.', 'apple-news' ), 'required' => false, ], - 'excluded_selectors' => [ + 'excluded_selectors' => [ 'label' => __( 'Selectors', 'apple-news' ), 'type' => 'text', 'size' => 150, 'description' => sprintf( + /* translators: %s: tag */ __( 'Enter a comma-separated list of CSS class or ID selectors, like %s. Elements in post content matching these selectors will be removed from the content published to Apple News.', 'apple-news' ), '.my-class, #my-id', ), @@ -85,19 +86,19 @@ public function __construct( $page ) { // Add the groups. $this->groups = [ - 'alerts' => [ + 'alerts' => [ 'label' => __( 'Alerts', 'apple-news' ), 'settings' => [ 'component_alerts' ], ], - 'images' => [ + 'images' => [ 'label' => __( 'Image Settings', 'apple-news' ), 'settings' => [ 'use_remote_images', 'full_bleed_images' ], ], - 'format' => [ + 'format' => [ 'label' => __( 'Format Settings', 'apple-news' ), 'settings' => [ 'html_support', 'in_article_position' ], ], - 'aside' => [ + 'aside' => [ 'label' => __( 'Aside Component', 'apple-news' ), 'settings' => [ 'aside_component_class' ], ],