Skip to content

Commit

Permalink
Fixing PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajinsharwar committed Nov 16, 2023
1 parent 810f4aa commit 8cc458c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/css/wp-tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
border-right: 10px solid transparent;
border-bottom: 10px solid #fff;
transform: rotate(180deg) scaleX(-1);
}
}
20 changes: 10 additions & 10 deletions src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8902,16 +8902,16 @@ function wp_admin_notice( $message, $args = array() ) {
*/
function add_tooltip( $field_id, $tooltip_text, $tooltip_button_label = 'Help' ) {
?>
<div class="tooltip-container <?php echo esc_attr( $field_id ); ?>">
<button type="button" class="tooltip-button" aria-describedby="<?php echo esc_attr( $field_id ); ?>-tooltip" aria-label="<?php echo esc_attr( $tooltip_button_label ); ?>">
<span class="dashicons dashicons-editor-help"></span>
</button>
<div id="<?php echo esc_attr( $field_id ); ?>-tooltip" class="tooltip-content">
<div class="tooltip-arrow"></div>
<p><?php echo esc_html( $tooltip_text ); ?></p>
</div>
</div>
<?php
<div class="tooltip-container <?php echo esc_attr( $field_id ); ?>">
<button type="button" class="tooltip-button" aria-describedby="<?php echo esc_attr( $field_id ); ?>-tooltip" aria-label="<?php echo esc_attr( $tooltip_button_label ); ?>">
<span class="dashicons dashicons-editor-help"></span>
</button>
<div id="<?php echo esc_attr( $field_id ); ?>-tooltip" class="tooltip-content">
<div class="tooltip-arrow"></div>
<p><?php echo esc_html( $tooltip_text ); ?></p>
</div>
</div>
<?php

/**
* Enqueues the Styles and Scripts for the Tooltip.
Expand Down

0 comments on commit 8cc458c

Please sign in to comment.