No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update
No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update
No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update
This is a bug in WordPress. https://core.trac.wordpress.org/ticket/35873 As far as I can see, it can currently be fixed with https://core.trac.wordpress.org/attachment/ticket/35873/35873.3.patch, if you are reading this some time later, it has probably already been fixed for your WordPress version. As a temporary workaround, set parent dependencies to both child and grandchild. This way grandchild.js will not … Read more
If I understand you correctly, you want all attachment status set to ‘publish’ on upload in stead of ‘inherit’ to prevent that status changing when the parent post status changes. Let’s take a look at wp_insert_post if it offers any possibilities. First on line 3483 (current version) the post status is set to ‘inherit’ in … Read more
This is how i set my content directory in wp-config.php // ======================== // Custom Content Directory // ======================== define( ‘WP_CONTENT_DIR’, dirname( __FILE__ ) . ‘/somedir’ ); define( ‘WP_CONTENT_URL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/somedir’ );
When using the Gutenberg Block editor you need to use different hooks to get the expected behavior. rest_insert_{$this->post_type} The pre-update hook. rest_after_insert_{$this->post_type} The post-update hook. credits: @SallyCJ
wp_editor() outputs the textarea(html codes), so, maybe you dont need to use that in functions.php, but use inside the page’s source. (for example, in your plugin.php: <div class=”blabla> <form action=”” method=”POST”> <?php wp_editor( ‘Hi,its content’ , ‘desired_id_of_textarea’, $settings = array(‘textarea_name’=>’your_desired_name_for_$POST’) ); ?> <input type=”submit”> </form> </div> note: it may wont work for add_option function..
I’ve fixed it by creating the following tiny plugin: <?php /* Plugin Name: Fix “Add Media” button in WordPress 4.5 Plugin URI: twitter.com/ojeffery Description: The 4.5 update of WordPress changed to the most recent version of JQuery, which broke the Add Media button when you call wp_editor via the front end. This tiny plugin fixes … Read more
You need to upgrade your database and table charsets to utf8mb4 (WordPress 4.2+’s default). I’ll not provide instructions as to how to do this beyond “backup first and diff and compare pre and post database dumps!” Set aside enough time to recover from any trouble. I had the exact same problems as you, and fixed … Read more
On line 704 it mentions something about “User_ID => 5”. Not sure, but this might have something to do with your problem? // debug stuff $args = array(‘user_ID’ => 5); rhb_check_user_badges( $args );
Try the fix posted here: http://sourceforge.net/tracker/?func=detail&aid=3485384&group_id=315685&atid=1328061 It worked for me. translations.php line 726 Change this: $pattern = ‘/LIMIT\s*(\d+)((\s*,?\s*)(\d+))(;{0,1})$/is’; to this: $pattern = ‘/LIMIT\s(\d+)((\s*,?\s*)(\d+)*);{0,1}$/is’; Removing the extra parentheses allows “LIMIT 0, 10” to become “TOP 10”. With the extra parentheses, the “0” is used instead.