linux4me2
Forum Replies Created
-
Forum: Plugins
In reply to: [Menu In Post] Security Problem?I’m glad it’s working for you. I appreciate the five-star rating. One is enough! Thanks again for letting me know about the security issue(s).
Forum: Plugins
In reply to: [Menu In Post] Security Problem?Hi @brisch,
I just uploaded v. 1.4, which I believe addresses all the potential security issues reported by Wordfence and brings the code of Menu In Post up to current WordPress guidelines.
I made a lot of code changes, so although I tested it and debugged it, please let me know if I missed anything.
Thank you again for making me aware of the security vulnerabilities.
Forum: Plugins
In reply to: [Menu In Post] Security Problem?@brisch, that sounds like you’ll be safe for now!
I’m about 75% of the way through a re-do of the PHP files to bring them up-to-date with WordPress best-practices. After that, I’ll check the JS files and do some testing/debugging before uploading an update. I’ll let you know when I’ve got the update uploaded.
Forum: Plugins
In reply to: [Menu In Post] Security Problem?Hi Brigitte,
Thanks for letting me know. I was not aware of this.
According to the link you provided, the issue is a cross-site scripting vulnerability that “makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.”
If I understand that correctly, it means that in order to take advantage of the vulnerability, the attacker would have to be someone with login credentials as a contributor or higher for the site. As long as you trust all the users for the site with contributor or higher access, it seems like it would be safe to continue using the plugin until I investigate further and (hopefully) release a patch.
If you have any doubts about the users of the site with such access, I recommend disabling and deleting the plugin until I have released a fix.
I will post back here with my progress.
Forum: Plugins
In reply to: [Menu In Post] Styling / Unordered listPlease post the solution if you discover one. I’d like to know why it’s not working as well. If ChatGPT is correct that a parent declaring
list-style: noneorlist-style-type: noneis responsible, maybe there is one further up the hierarchy I didn’t see that’s preventing us from setting it.Forum: Plugins
In reply to: [Menu In Post] Styling / Unordered listIt looks like you have the CSS in there correctly for the “vop” class, which is set as an attribute for the menu as it should be, and the menu is being rendered in the HTML correctly by Menu In Post, but for some reason I haven’t been able to figure out, your CSS for the list style is being ignored, despite it not showing as overridden (crossed out) in Firefox Developer Tools.
There is a
list-style-type: none;further up the hierarchy for.site-footer .container .padder > ul > li, which might prevent your CSS from having an effect since your menu is an unordered list within the unordered list in.padderthat makes up the footer, but even when I remove that rule, the list style rules you’ve set don’t work.According to ChatGPT:
If a parent UL (or LI) has a shorthand like list-style: none (or
list-style-type: none) applied, that can suppress markers for descendant
lists in many browsers, so child ULs may not show bullets even when
their own rules appear in DevTools. The child’s rule can show (not
crossed out) but the marker still won’t render because the ancestor’s
list-style setting prevents the browser from generating markers for the
list subtree.Resetting the full shorthand on the specific child list fixes it (not
just list-style-type). Example to add to your stylesheet: ul.vop {
list-style: disc outside none !important; }I couldn’t get that to work on your site
The menu looks like it’s being rendered just fine to me, and your site looks good to me, so if it were me I would probably leave it as is, but if you want some kind of list-item marker there, a possible workaround would be to use a pseudo-element with the following selector:
.vop > li > a::before {
content: " • ";
}When I try that, it puts a bullet before each link in your menu and looks pretty good, though when I don’t translate the page to English, it causes your “Privacy Policy” line to wrap.
Forum: Plugins
In reply to: [Menu In Post] Styling / Unordered listSure, if you post the URL, I’ll take a look.
Forum: Plugins
In reply to: [Menu In Post] Styling / Unordered listYou’re welcome. I’ll leave this unresolved for now in case you have more questions, and close it in a couple of weeks if I don’t hear from you.
Forum: Plugins
In reply to: [Menu In Post] Styling / Unordered listHi @vladav, in Admin, use the menu to go Tools > Menu In Post Tools, and make sure you select “List of Links” for the Style dropdown when you create a menu shortcode that you want to be a simple unordered list.
A Menu In Post menu shortcode for an unordered list will look like this:
[menu_in_post_menu menu=3 style="list"]Where the “style” is listed as
style="list"to give you the menu in an unordered list.A dropdown menu shortcode will be:
style="dropdown"You can change a “dropdown” style menu shortcode that you’ve already pasted into a post in the WordPress editor from a dropdown to an unordered list by simply changing the style attribute in the shortcode from “dropdown” to “list”.
If you’re still not getting an unordered list of the menu items with the
style="list"attribute in your Menu In Post shortcodes, it may be that your theme’s CSS is overriding the default styling of unordered lists and giving you something else, in which case you can add a custom class to your Menu In Post shortcodes, then add custom CSS to style the menus as you like without altering your theme’s CSS.Does that answer your question?
@alexmigf, I don’t want to hijack this thread, but I was also experiencing the missing state for a US address with v. 4.5.1, and upgrading to v. 4.5.2-pr1188 fixed that; however, the phone number is still missing on the Invoice and Packing List despite it being added to General > Shop Information > Shop Phone Number and selected to show in Invoice/Packing Slip > Documents > Document Details, which I suspect is related to all this.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Fatal Error with 4.4.0I rolled back the plugin to v. 4.3.0, then added the wpo_wcpdf_settings_debug option with a value of 7 back into the database, and then upgraded the plugin to v. 4.4.1-pr1154.1 without any errors, and the PDF invoices and packing slips for existing orders display just fine, so I think you’ve got a fix that does not require deleting the wpo_wcpdf_settings_debug option.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Fatal Error with 4.4.0That’s helpful. A couple of things that might make it easier for CPanel users is to:
- Use cPanel’s File Manager to rename the /wp-content/plugins/woocommerce-pdf-invoices-packing-slips folder to get the site back online instead of Filezilla or some other FTP program.
- In phpMyAdmin in cPanel, select the options table from the appropriate database in the left sidebar, then click the “SQL” tab and run the following query, replacing
<your options table name here>with the name of your options table, then click the “Go” button to execute the query:
SELECT * FROM<your options table name here>WHERE option_name = "wpo_wcpdf_settings_debug"That should do the work of displaying the problem option for you more easily to delete it. You can then use cPanel’s File Manager to rename the folder and you should be good to go. No need for Filezilla, because cPanel has all you need to effect the changes. Other hosting control panels usually have a file manager and phpMyAdmin or something like it, too.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Fatal Error with 4.4.0Hi @alexmigf,
I deleted the wpo_wcpdf_settings_debug option and did the update to v. 4.4.0 via the CLI with no errors.
It looks like you found the fix. Thanks for a great plugin and such a great response.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Fatal Error with 4.4.0Hi @alexmigf, thanks for the quick response!
In my options table, the value of wpo_wcpdf_settings_debug is 7 and autoload is “yes.”
Forum: Plugins
In reply to: [MainWP Dashboard: WordPress Management without the SaaS] How to logout?If you’re asking how to go from MainWP back to the WordPress Admin, if I click the top-right icon in the MainWP toolbar, I get a menu with a “Go to WP Admin” option to take me back to WordPress Admin as well as other options, including “Log Out.”