Tag Info

Hot answers tagged

1

I would agree that current_user_can('Administrator') should return true for the user. However, current_user_can is primarily intended to check for capabilities, which is generally a more robust check to be making. I'd suggest something like this (untested): if ( current_user_can( 'activate_plugins' ) && ! current_user_can( 'update_core' ) ) { //... ...


1

In many cases, you may use the following filter to disable local ssl verification. This is useful for self-signed certificates errors. add_filter('https_local_ssl_verify', '__return_false'); The current version v4.3.0 determins if a request is "local" with the following, in wp-includes/class-http.php // Determine if this request is to OUR install of ...


1

Just small nuggets of information that may help in simple setups (most notably the ones with no use plugins using ob_start): 1) You don't need the to put dns-prefetch calls as the first elements. What you need is to put them as soon as possible before any other element calling external resources. 2) Is actually possible to use negative numbers as priority ...



Only top voted, non community-wiki answers of a minimum length are eligible