Hot answers tagged

5

In wp-admin/includes/update.php file if ( current_user_can('update_core') ) $msg = sprintf( __('An automated WordPress update has failed to complete - <a href="%s">please attempt the update again now</a>.'), 'update-core.php' ); else $msg = __('An automated WordPress update has failed to complete! Please notify the site ...


1

You just need to move the capability check "inwards": function wpse_230369_quote_of_the_day( $user ) { $quote = esc_attr( get_option( 'quote_of_the_day' ) ); ?> <div class="visible-only-for-admin"> <h3>Quote of the Day Input Field</h3> <table class="form-table" > <tr> <th><label ...



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