Deprecated issue in WordPress [closed]

First find C_Widget_Gallery widget code. Search all the theme directory first. Specially any *.php file with -widget name part. It can also be initiated by a plugin. So search in the plugin directory if you don’t find it in themes directory. Then find $this->WP_Widget inside the class and replace only just it with parent::__construct. And … Read more

Deprecated: mysql_connect():

The MySQL extension: Is not under active development Is officially [deprecated][1] as of PHP 5.5 (released June 2013). Has been removed entirely as of PHP 7.0 (released December 2015) Lacks an OO interface Doesn’t support: Non-blocking, asynchronous queries [Prepared statements][2] or parameterized queries Stored procedures Multiple Statements Transactions The “new” password authentication method (on by … Read more

media_buttons_context is deprecated

Try this media_buttons instead of media_buttons_context Please refer these URL: https://developer.wordpress.org/reference/hooks/media_buttons_context/ https://developer.wordpress.org/reference/hooks/media_buttons/

How a deprecated function can crash WordPress site while upgrading

Where… The following files hold the deprecated functions: ~/wp-includes/deprectated.php ~/wp-includes/pluggable-deprectated.php … Take a look at them and then through their replacement functions, where the calls to _deprecated_function() happen. Why… Normally a crash shouldn’t happen. In the “real” PHP world, you’d get an E_DEPRECATED Warning. In WordPress you’ll get a trigger_error() return caused by _deprecated_function() calls. … Read more

_deprecated_argument for constants

Unfortunately there is no way to trigger WP deprecation warning for PHP constants. What I can suggest – to use your constants and “theme support” options together. First for backward compatibility, second for customization facilities. Your theme will have to rely on “theme support” options only, and keep constants only for child theme. The trick … Read more

Use ‘add_theme_support’ instead of ‘add_custom_image_header’ In WordPress 3.4

Please read Updating Custom Backgrounds and Custom Headers for WordPress 3.4. Custom Headers Old method: // Define default header image constant define( ‘HEADER_IMAGE’, get_template_directory_uri() . ‘/images/headers/default.jpg’ ); // Define header image width constant define( ‘HEADER_IMAGE_WIDTH’, 1000 ); // Define header image height constant define( ‘HEADER_IMAGE_HEIGHT’, 198 ); // Define header text constant define( ‘NO_HEADER_TEXT’, false … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)