Skip to content

Commit

Permalink
Update wp-accessibility-alt.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Feb 12, 2025
1 parent 46ed713 commit e523f8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wp-accessibility-alt.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ function wpa_add_editor_styles() {
* Enqueue custom block editor styles for WP Accessibility. Used in display of img replacements.
*/
function wpa_block_editor_assets() {
// Using enqueue_block_assets will enqueue on the front-end if not wrapped in conditional.
if ( is_admin() ) {
$wpa_version = ( SCRIPT_DEBUG ) ? wp_rand( 10000, 100000 ) : wpa_check_version();
wp_enqueue_style( 'wpa-block-styles', plugins_url( 'css/editor-style.css', __FILE__ ), false, $wpa_version );
Expand Down

0 comments on commit e523f8d

Please sign in to comment.