winnephew
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] WPCF7_VERIFY_NONCE default valueSorry, I just found the longer patch notes:
A nonce is a randomly generated string used for security purposes. Contact Form 7 verifies a nonce to ensure that a form submission has correctly been sent from the contact form and not faked by a spammer.
You can set the WPCF7_VERIFY_NONCE constant to determine whether to verify nonces. In the past, the default value was true. Contact Form 7 4.9 changes the default value to false because any good effect expected from a nonce is limited when it is used for a publicly-open contact form that anyone can submit, and undesirable side effects have been seen in some cases.
You can continue to use nonces by setting the WPCF7_VERIFY_NONCE constant to true explicitly, or by using the new wpcf7_verify_nonce filter hook like the following:
1
add_filter( ‘wpcf7_verify_nonce’, ‘__return_true’ );
Note that the subscribers-only mode needs nonces to work and a nonce is used in the contact form in the subscribers-only mode regardless of the value of the WPCF7_VERIFY_NONCE constant.To be honest, I’m still confused about the explanation. I wouldn’t recommend turning this off by default especially since your plugin is so widely used and this is an important security feature for any form. This could as a side-effect open up many sites using your plugin for CSRF.
- This reply was modified 7 years, 2 months ago by winnephew.
Forum: Plugins
In reply to: [Subway - Private Site Option] Redirect not working perfectlyCould not isolate the cause in the DB, but reinstalling fixed the issue.
- This reply was modified 7 years, 6 months ago by winnephew.
Forum: Plugins
In reply to: [Widget Logic] How to display widget by Language?Do you just want to serve different localizations? Then you might want to look into the __ function and not use any widget logic at all for this.
Forum: Plugins
In reply to: [Widget Logic] How to use with custom PHP?Do you just want to serve different localizations? Then you might want to look into the __ function and not use any widget logic at all for this.
Forum: Plugins
In reply to: [Widget Logic] widget doesn't appear in attraction sidebarGlad you got it working.
is_page() works the same way. You weren’t supposed to copy the strings like that but use a page title, slug or id instead of my examples.
is_page(32) should show the widget on the page with id 32.
is_page(‘Attractions’) should show the widgte on a page with the title Attractions.And is_page( array( 32, ‘Attractions’) ) should show it on both of them.
Forum: Plugins
In reply to: [Widget Logic] Widget Logic and wp 4.3 ProblemOk i found my problem. Nothing to do with widget logic.
Look here:
https://core.trac.www.ads-software.com/ticket/33442Forum: Plugins
In reply to: [Widget Logic] Hiding widget at single.php pagesmaybe try something like
is_page_template('single.php')
If that doesn’t work you might look into is_single or is_singular I’m not sure right now in which cases single.php is used though – i’d have to look it up.
Forum: Plugins
In reply to: [Widget Logic] Help !! One article and one category possible ?You’d probably want to do sth. like
is_category('yourCategory') || is_page(32)
where 32 is the post-id of your single article. you can find that one either in its link, or if you use custom permalinks in your database
Forum: Plugins
In reply to: [Widget Logic] PHP Parse Error – Help!Cheers! Glad I could help you.
Forum: Plugins
In reply to: [Widget Logic] PHP Parse Error – Help!Cheers! Glad I could help you.
Forum: Plugins
In reply to: [Widget Logic] widget doesn't appear in attraction sidebarNot sure about your problem from the given description but to make a widget be shown only on certain pages use
For example: Add in your widget logic box
is_page( array('yourPageTitle','anotherPageTitle','yourThirdPageSlug') )
Forum: Plugins
In reply to: [Widget Logic] PHP Parse Error – Help!Well I think the error pretty much tells you what is wrong.
I’d guess your widget logic is something like
is_page('somepage');
where it should be
is_page('somepage')
without the ;
The code gets eval’d.Forum: Plugins
In reply to: [Widget Logic] Widget Logic and wp 4.3 ProblemI’m also experiencing problems after the 4.3 update. The widget is shown in the preview but as soon as I change the widget logic slightly (by deleting some whitespace) the preview gets recalculated and the widget is gone.
I read about the PHP4 Style constructors being a problem in some Widgets here but that is not the case with mine.
Any ideas what could cause this?
My widget logic is something like this:
is_page( array( 'page-slug1', 'page-slug2', 'page-slug3','page-slug4') )
Forum: Plugins
In reply to: [Contact Form 7] Eliminating ajax call ?_wpcf7_is_ajax_call=1…I too would like a solution for this ??
Forum: Plugins
In reply to: [Autoptimize] @import QuestionJust in case someone else finds it useful add this to your functions.php to delete the imports:
function autoptimize_delete_imports( $css ) { $css = preg_replace("/@import\s([^>]*);/","",$css); return $css; } add_filter('autoptimize_css_after_minify','autoptimize_delete_imports');
Then instead link whatever imports you deleted in your header.php, for example:
<link rel="stylesheet" type="text/css" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" media="screen"> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto|Open+Sans" media="screen">