felipebadr
Forum Replies Created
-
Forum: Reviews
In reply to: [Ads.txt Manager] too much code to perform a simple actionThinking about revisions is a good idea. I like a simpler and more lightweight plugin for this, but the plugin of yours is well done.
Forum: Plugins
In reply to: [WP Fastest Cache] Html is corruptedThanks
Forum: Plugins
In reply to: [WP Fastest Cache] Html is corruptedHere is how the plugin prints the ads.txt
function __construct() { add_filter('init', array($this, 'BS_ads_txt_template_include'), 1, 1); } /** * Functions that catches ads.txt file request. * * @access public * @return void */ public function BS_ads_txt_template_include($template){ $request = esc_url_raw( $_SERVER['REQUEST_URI'] ); if ( '/ads.txt' === $request ) { $val = get_option( 'bs_ads_txt_settings_option_name' ); $ads = isset( $val['bs_ads_txt'] ) ? esc_html( $val['bs_ads_txt'] ) : ''; if(trim($ads) != ""){ header( "Content-Type: text/plain" ); echo $ads; die(); } } }
Hope it can help.
Forum: Plugins
In reply to: [WP Fastest Cache] Html is corruptedForum: Plugins
In reply to: [Code Snippets] Use in high traffic sitesVery good! Thank you so much!
Forum: Plugins
In reply to: [Posts in Sidebar] Styles -> Extras field problemThank you @aldolat!! ??
Forum: Plugins
In reply to: [Posts in Sidebar] Update 1.27 Clear my widget settingsHi @aldolat. I tried to update again to take the screenshots and this time I updated and cleared the WP Super Cache Plugin, like I did before, and the sidebar widgets disappeared, like the first time, so I did go to the widgets and the information was there. So I saved the Widget again and the sidebar go back to normal. Thanks for the support. o/
Forum: Plugins
In reply to: [Posts in Sidebar] Update 1.27 Clear my widget settingssorry my bad english. :p
Forum: Plugins
In reply to: [Posts in Sidebar] Widget dropped from 1.23 updateHappened the same here. Thanks for the tip BNOTP.
Forum: Plugins
In reply to: [Email Post Changes] Users to Email not working and not receiving emailsThis is a great plugin. To fix the e-mail receiving problem, replace this code on “class.email-post-changes.php” at line 230:
wp_mail( $email, sprintf( __( '[%s] %s changed: %s' ), $blogname, $post_type, $title ), $html_diff );
To:
$f_headers = 'From: WordPress <wordpress@'.str_replace('www.', '', $_SERVER['HTTP_HOST']).'>' . "\r\n"; wp_mail( $email, sprintf( __( '[%s] %s changed: %s' ), $blogname, $post_type, $title ), $html_diff, $f_headers );