Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unconditional stylesheet output in backend leads to incompatibility with other plugins #96

Open
Dherlou opened this issue Sep 27, 2021 · 0 comments

Comments

@Dherlou
Copy link

Dherlou commented Sep 27, 2021

Problem

The unconditional style output at the end of the backend plugin.php leads to an incompatibility with other plugins like Seans QR Code Plugin. This happens, because the QR Code Plugin displays the QR Codes directly as images with Header("Content-type: image/png");and the unconditional output of this plugin (<style>ul#admin_menu li:not(.frontend_link) {display: none}</style>) destroys the output, which leads to a corrupt image.

Solution

The style definition should only be loaded on required pages with the help of yourls hooks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant