• hi every body

    i have problem :
    Deprecated: has_cap
    in /home/samengar/public_html/wp-includes/functions.php on line 5495

    error line :
    E_USER_DEPRECATED

    any body have solutions ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • A plugin or your active theme is using that deprecated function.

    Turn on debugging to get more information about what’s using this deprecated function.

    Debugging in WordPress

    Thread Starter muscleman

    (@xxman2021)

    hi George Appiah

    Deprecated: has_cap Out of version 2.0.0! Use of user categories is obsolete. Use capabilities instead. in /home/****/public_html/wp-includes/functions.php on line 5495

    if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) {
    		if ( function_exists( '__' ) ) {
    			if ( $message ) {
    				trigger_error(
    					sprintf(
    						/* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */
    						__( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s' ),
    						$function,
    						$version,
    						$message
    					),
    line 5495 					E_USER_DEPRECATED
    				);
    			}
    Moderator t-p

    (@t-p)

    What was done at the site before this error showed up?

    Have you also tried:
    manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
    – If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).`

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated: has_cap’ is closed to new replies.