bajro
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sporty] Font face problemHello,
yes that would help, but on the plugin upgrade thoose changes will be lost. Is there any onther way to turn font-face off?
Forum: Plugins
In reply to: [Polylang] Permalinks 404 errorYes, I understand. Above mentioned solution will be just fine. Thanks!
Forum: Plugins
In reply to: [Polylang] Permalinks 404 errorYes, it works in that way. Thank you!
But it is only workaround because now users should ask network admin for plugin activation. Is that the only way?Forum: Plugins
In reply to: [Polylang] Permalinks 404 errorWe have WP multisite setup with Network Plugins.
Forum: Plugins
In reply to: [Polylang] Permalinks 404 errorNo, it’s not active, and that is the problem. It is network activated.
we don’t want to force all of our users (new sites) to use Polylang, and in that case permalinks do not work by default after opening new site.
Rewrite rules for Post1 and Page2 are here.
Forum: Plugins
In reply to: [Polylang] Permalinks 404 errorSure; https://bit.ly/1p1NpGR
I will recheck this.
Can we do something more?
If you want, you can contact me in PM and I’ll give you access so you can test it out.Thanks
Forum: Plugins
In reply to: [Polylang] Permalinks 404 errorYes, we tested it with Twenty twelve and Twenty fourteen. There are no other themes installed or activated. Still no luck. Can we do something more?
Thanks
Forum: Themes and Templates
In reply to: [Hathor] Fatal error: get_header() undefinedHello,
same problem here:
PHP Fatal error: Call to undefined function get_header() in […]/index.php on line 1
Forum: Plugins
In reply to: [Polylang] Local config file includeHello,
i understand, thank you for explanation.
Forum: Fixing WordPress
In reply to: /wp-login.php?action=postpassWP team, what do you think about this solution in wp-login.php:
* @param int $expires The expiry time, as passed to setcookie(). */ $expire = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS ); - $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); + $secure = ($secure_cookie) ? ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ) : false;
Forum: Fixing WordPress
In reply to: /wp-login.php?action=postpassWe have the same problem in our environment. WP-team can you check this?
Thanks!Unfortunately, this doesn’t work in our case. When a new blog is created, there is no row in database for recaptcha with name “bwp_capt_general” (and “bwp_capt_version either“) for that new blog.
When you click “BWP reCAPT” on user interface, that creates above mention rows in database (table wp_$blogid_options), but without global keypairs. Can you check plugin (version 1.1.3) with multisite enviroment?We have upgraded plugin with every new release, but with 1.1.3 that multisite feature doesn’t work anymore. Last version that worked was 1.1.0 (but in that version keypairs was stored differently).
Hi,
We’ve created a function which sets recaptcha entry for every new blog (public/private keys and other options).
Currently, with version 1.1.3 keypairs are not automatically included for new blogs (WordPress multisite).
For author (Khang Minh). Some of improvements that can be made with code below:<?php function cn_wpmu_create_blog ( $blog_id ) { global $wpdb; // get captcha private and public key from wp_options $wp_options = $wpdb->get_var("SELECT option_value FROM wp_options WHERE option_name LIKE 'bwp_capt_general'"); $wp_options = unserialize($wp_options); $public_key = $wp_options['input_pubkey']; $private_key = $wp_options['input_prikey']; $default_bwp_settings = array( 'input_pubkey' => $public_key, 'input_prikey' => $private_key, 'input_error' => '<strong>ERROR:</strong> Incorrect or empty reCAPTCHA response, please try again.', 'input_back' => 'Error: Incorrect or empty reCAPTCHA response, please click the back button on your browsers toolbar or click on %s to go back.', 'input_approved' => '1', 'enable_comment' => 'yes', 'enable_registration' => 'yes', 'enable_login' => '', 'enable_akismet' => '', 'use_global_keys' => '', 'select_cap' => 'manage_options' , 'select_cf7_tag' => 'bwp-recaptcha' , 'select_response' => 'redirect', 'select_position' => 'after_comment_field' , 'select_akismet_react' => 'hold', 'hide_registered' => '', 'hide_cap' => '', 'hide_approved' => '' ); $default_bwp_settings = serialize($default_bwp_settings); $wpdb->insert( 'wp_' . $blog_id . '_options', array( 'option_name' => 'bwp_capt_general', 'option_value' => $default_bwp_settings, 'autoload' => 'yes' ) ); } add_action ( 'wpmu_new_blog', 'cn_wpmu_create_blog' );
It would be ideal if you can make a check for keypairs (i.e. if they are exist in wp_config),
set warnings in blogs defined language (WPLANG in wp_$blogid_options), make checkboxes (on user interface)
for all options if global keypairs are used.Thanks,
BajroThanks for your response. In our case that’s not an option. Hope that feature above mention will be available soon.
Regards,
Bajro