Hi,
Can you give us step by step instructions on how to recreate your issue along with expected results and actual results?
Hello. Indeed:
- Create plugin with next code:
add_shortcode( ‘testwpo’, function( $attr, $content ) {wp_enqueue_style( ‘testwpo’, plugins_url(‘/testwpo.css’, __FILE__), array(), ‘1.0’, ‘all’ ); });
2. Create file testwpo.css:
#testwpo { color: red; font-size: 40px; }
3. Create page under WP:
[testwpo]
<p id=’testwpo’>test WPO</p>
4. Deactivate WPO and open the page in browser. Enjoy large red text “test WPO”
5. Activate WPO and enjoy the same large red text until minification css and ” Inline CSS – Recommended if the CSS files are small enough.” is on.
I tried with v.3.2.22
I hope that tens of my error reports and hours of understanding of the plugin’s code to localize them and tests helps you to make the plugin working properly.
P.S. I’m sorry but the devil’s block editor embeded in this page has been making a mess from the code that I wrote for you but I hope you guess the idea.
Thanks for providing the code reference. I’ve initiated an internal ticket in our system to conduct a more in-depth investigation. We’ll reach out to you if we require any additional information.