Add URL in image upload error message

It’s probable that HTML tags are being removed from output. You can test this by adding other HTML tags (ex: <strong>) and see if they are removed. If the bold text shows, it’s possible then that bold text is permitted but not links (using wp_kses() or similar). I backtracked the code quite a bit to … Read more

How to test plugin development with Git Hub Actions (integration tests)?

There are a couple GitHub Actions available in the Marketplace for checking response codes: https://github.com/marketplace/actions/check-url-status https://github.com/marketplace/actions/http-status There’s also this question on Stack Overflow if you want to do it custom: https://stackoverflow.com/questions/65728933/how-to-capture-a-curl-http-status-code-in-a-github-action-to-determine-success-f

Platform sh site setup in localhost gets Cookie error

Putting the code below in the settings.php file to boycott cookies solved my issue. define( ‘AUTH_KEY’, ‘put your unique phrase here’ ); define( ‘SECURE_AUTH_KEY’, ‘put your unique phrase here’ ); define( ‘LOGGED_IN_KEY’, ‘put your unique phrase here’ ); define( ‘NONCE_KEY’, ‘put your unique phrase here’ ); define( ‘AUTH_SALT’, ‘put your unique phrase here’ ); define( … Read more

column values not showing after merging two custom post types

The correct action hook for printing custom column content is manage_loads_posts_custom_column, not manage_invoices_posts_custom_column (tested). This is because the row is itself for a loads post type, and not an invoices post type. Because you’re on the page for invoices, the filter to add columns works with invoices. Tested: add_action( ‘manage_loads_posts_custom_column’, ‘invoice_custom_column’, 10, 2 ); I … Read more