WordPress classes explained

Are there any books, websites or lectures that explain the built-in WordPress classes? I would really like to learn how WordPress works internally. I’ve dug up the core files on trac and even went through the class reference on codex but yet I find it difficult to learn this way. I know this is not … Read more

Render Selected Categories in Admin Edit Post Screen differently

Selected Categories for a post in the admin screen are rendered by: // Put checked cats on top $output .= call_user_func_array( array( $walker, ‘walk’ ), array( $checked_categories, 0, $args ) ); in \wp-admin\includes\template.php (around line 163) I would like to, for the selected one on top, instead of displaying category “jkl”, render the full hierarchical … Read more

No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update

I’ve been trying to track down why my s3 bucket files are no longer being attached to automated emails being sent out by WordPress (using the Gravity Forms Entry Automation plugin). I’ve been able to identify the latest version of PHPMailer being the reason why the attachments no longer get added. From the PHPMailer ticket … Read more

What’s $GLOBALS[‘wp_settings’][‘media’][’embeds’]?

In wp-admin/options-media.php, there are a few lines that go: <?php if ( isset( $GLOBALS[‘wp_settings’][‘media’][’embeds’] ) ) : ?> <h3 class=”title”><?php _e(‘Embeds’) ?></h3> <table class=”form-table”> <?php do_settings_fields( ‘media’, ’embeds’ ); ?> </table> <?php endif; ?> ’embeds’ and “embeds” are nowhere else to be found in the WP code base. Might anyone know what it’s for? 1 … Read more

What CSS minifier does WP core use?

I did not see the minifier among the tools in https://code.trac.wordpress.org/browser/ . Is it in the repo somewhere? Or, what is it? (Note this question has been asked previously on Stack Exchange but the author was really asking a different question, so it does not have an answer. See What exact CSS minifier does WP … Read more

How to remove X-Frame-Options: SAMEORIGIN” from WordPress?

I want to temporarily remove X-Frame-Options: SAMEORIGIN and need to allow all domains. I have already tried the following ways. Removing send_frame_options_header from ./wp-includes/default-filters.php remove_action(‘login_init’, ‘send_frame_options_header’); Removing @header( ‘X-Frame-Options: SAMEORIGIN’ ); from /wp-includes/functions.php None of the above doesn’t work. PS: I don’t use any security plugin either. 1 Answer 1 Check this question How does … Read more

Updating WordPress – the best approach (updating wp core, plugins and db)

What is the best approach (steps) to update WordPress when I have to update all of the following: wp core plugins database I came across this post http://codex.wordpress.org/Updating_WordPress However, it doesn’t involve db update on top of wp core. Should I update the db after wp code and plugins or before? Db contains settings for … Read more