Skip to content

Commit

Permalink
Spacin'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh01 committed Nov 19, 2024
1 parent dab54a8 commit 44bb045
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions admin/apple-actions/index/class-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ private function exclude_selectors( $content ) {

libxml_use_internal_errors( true );
$dom = new \DOMDocument();
$dom->loadHTML( '<?xml encoding="utf-8" ?>'. $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
$dom->loadHTML( '<?xml encoding="utf-8" ?>' . $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
$xpath = new \DOMXPath( $dom );
libxml_clear_errors();

Expand All @@ -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
}
}
}
Expand Down
11 changes: 6 additions & 5 deletions admin/settings/class-admin-apple-settings-section-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: <code> 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' ),
'<code>.my-class, #my-id</code>',
),
Expand All @@ -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' ],
],
Expand Down

0 comments on commit 44bb045

Please sign in to comment.