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

Which themes do you use to test compatibilities with your plugin [closed]

Themes, anyone? I don’t test »against« or »with« themes. Just with some other plugins that might conflict (but I normally leave that open until something happens – you’ll never figure out all edge cases). At least, you’re intercepting/extending/altering stuff via filters. So why test against themes, when you’re modifying core functions? If you’re intercepting the_content … Read more

Installing jQuery plugin to wordpress theme (Incredible)

You can load the scripts like this: function wpa_90150_scripts() { wp_enqueue_script( ‘contenthover’, get_template_directory_uri() . ‘/js/jquery.contenthover.js’, array(‘jquery’), ”, true ); wp_enqueue_script( ‘custom’, get_template_directory_uri() . ‘/js/custom.js’, array(‘jquery’,’contenthover’), ”, true ); } add_action(‘wp_enqueue_scripts’, ‘wpa_90150_scripts’); Which I think you’re mostly doing correctly, especially if they are being loaded on your site. And then initialize the jQuery scripts like this: … Read more

Error: Declaration of MyClass::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl()

From class Walker_Nav_Menu: function start_lvl( &$output, $depth = 0, $args = array() ) Your child class must use the same signature: three arguments, the first one passed by reference. Every difference will raise the error you got. Note that $args defaults to an empty array, but you get an instance of stdClass, not an array. … Read more

VMWare Workstation Pro can’t run on Windows [closed]

There are various ways to solve this : Uninstall windows updates and block them from reinstalling using “Show or hide troubleshooter”. This tool can be downloaded from microsoft official website. Install ADK and use compatibility administrator to “Disable entry” for vmware.exe. source : http://mauricemuteti.info/solved-vmware-workstation-14-1-7-12-5-9-15-5-pro-cant-run-on-windows-version-1903-update-problem-fixed/