has_cap was called with an argument that is deprecated since version 2.0
-
Hi,
When updated to wordpress 4.2.2 the “Notice: has_cap was called with an argument that is deprecated since version 2.0!” occur.
Fix is to change the lines:
add_options_page('Internet Explorer Alert', 'Internet Explorer Alert', 9, basename(__FILE__),'IEA_OPTION');
to
add_options_page('Internet Explorer Alert', 'Internet Explorer Alert', 'edit_pages', basename(__FILE__),'IEA_OPTION');
- The topic ‘has_cap was called with an argument that is deprecated since version 2.0’ is closed to new replies.