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

Nutzung des shortcodes blogroll führt zu Unerreichbarkeit #418

Closed
AstridSemm opened this issue Nov 9, 2017 · 4 comments
Closed

Nutzung des shortcodes blogroll führt zu Unerreichbarkeit #418

AstridSemm opened this issue Nov 9, 2017 · 4 comments
Labels

Comments

@AstridSemm
Copy link

Wenn man den shortcode [blogroll cat="kategorie"] in einem Beitrag nutzt, entsteht (wohl) eine Endlosschleife. Auch wenn es natürlich im Grunde sinnfrei ist, das zu tun, sollte das nicht passieren. Ich habe das zufällig entdeckt, weil ich das Feature in einem Artikel beschrieben habe und selbstverständlich ein Beispiel einbinden wollte, was genau zu diesem Verhalten führte.

@AstridSemm AstridSemm added the Bug label Nov 9, 2017
@xwolfde
Copy link
Member

xwolfde commented Nov 9, 2017

Irgendwann sollten wir einbauen, dass die unsinnige Nutzung von Code oder Semantik Stromschläge an die Tastatur des Verantwortlichen sendet.

@AstridSemm
Copy link
Author

Der ganz große Witz ist, dass das nicht nur passiert, wenn man den Shortcode an sich nutzt, sondern auch, wenn man den shortcode-Text anzeigen möchte (also [[blogroll cat="kategorie"]]). Es läßt sich in der Tat nur beheben, wenn man dem Wort "blogroll" etwas hinzufügt, wie zB. "blogroll2". Rolf äußerte den Verdacht, dass "blogroll" ein WordPress-internes geschütztes Wort ist, auf das WP in Beiträgen eben etwas nickelig reagiert. Das sollte bitte geprüft werden.

@cassandre
Copy link
Member

Es gab mal eine Blogroll in WP, die aber mit 3.6. abgeschafft wurde. Der Begriff taucht aber momentan im Core nicht in irgendeinem kritischen Zusammenhang auf.
Mein Vorschlag wäre einfach ein if (!is_page()) return; o.ä. an den Anfang vom Shortcode zu setzen

@xwolfde
Copy link
Member

xwolfde commented Dec 13, 2017

in 1.9.1

@xwolfde xwolfde closed this as completed Dec 13, 2017
xwolfde added a commit that referenced this issue Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants