Robert Poth
Forum Replies Created
-
I’m using this plugin as well. According to wordfence there is a security vulnerability but in my view with relatively low risk, see: https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/multi-column-tag-map/multi-column-tag-map-17039-authenticated-administrator-stored-cross-site-scripting-via-mctm-css-conditional-parameter
An attacker would need to have administrator-level permissions and above.
Forum: Themes and Templates
In reply to: [Twenty Eleven] single posts with sidebarThanks for your suggestion, I assume this should work in the child theme’s function.php; I will give it a try.
Problem and my workaround, which works but is overwritten with each update of the parent theme:
Twenty Eleven has a template single.php for displaying all single posts which doesn’t include the sidebar. With the function twentyeleven_body_classes( $classes ), the div classes .singular are applied to single posts.
- Create a template single-sidebar.php for all single posts which includes the sidebar
- Add this template in the second if-statement of the function twentyeleven_body_classes( $classes ) to prevent the div classes .singular being applied to single posts. [&& ! is_page_template ( ‘sidebar-single.php’ )]
Hi Matthew,
up to now, this option was never enabled.
Enabling it (with Version 14.10) doesn’t make any difference. The German quotation marks are still wrong.
Same with Version 14.11.3: German quotation marks are correct, regardless of the option being enabled or not.
Hi Matthew,
if you cannot reproduce the issue, then you probably just pasted German text with German quotation marks. That’s not the problem. They will be okay.
The problem is what happens when you type German text with “quotation marks” in the WordPress editor and save it. These quotation marks will always be the wrong ones (like those in the previous sentence) even in the visual editor (classic). They are replaced by WordPress with German quotation marks only in the published version (post/page), not in the editor. And that’s how it should be.
But not with WP statistics versions prior to 14.11 activated.
I provided two screen shots at one of my websites. https://upcycling.rpoth.at/wp-content/uploads/quotation_marks_wpstats-14-10.jpg and https://upcycling.rpoth.at/wp-content/uploads/quotation_marks_wpstats-14-11.jpg I hope they are accessible.
Hi Matthew,
the problem appears in published content (pages, posts etc.). I made two screenshots, one with version 14.10 (wrong) and one with 14.11 (correct), but these are from an installation on localhost. To provide an URL of those images (which seems to be required here) I would have to upload them somewhere. You can spare me this effort if you just believe what I say.
Hi Matthew,
I don’t understand how “screenshots” (of wrong quotation marks?) could help in this case.
The difference between German and English quotation marks is e.g. explained here:.
https://deutsch.lingolia.com/en/writing/quotation-marks
Once WP Statistics (starting with version 14.0 up to 14.10) was activated, German quotation marks were replaced by English quotation marks.
Code for German quotation marks (wp-includes/html-api/class-wp-html-decoder.php)
0x201A, // 0x82 -> SINGLE LOW-9 QUOTATION MARK (‚).
0x2019, // 0x92 -> RIGHT SINGLE QUOTATION MARK (’).0x201E, // 0x84 -> DOUBLE LOW-9 QUOTATION MARK („).
0x201D, // 0x94 -> RIGHT DOUBLE QUOTATION MARK (”).Same with different WordPress versions and at least four different themes. Same with a bilingual WordPress site I’m developing where you can switch between English and German versions and the quotation marks change accordingly – but not with the mentioned versions of WP Statistics.
Once these versions of WP Statistics were deactivated, the problem disappeared.
If the problem is an interference with the function wptexturize (in includes/formatting.php) then a guess would be that it’s somehow related to how the language is determined.