Creating a child theme after numerous edits to parent theme

[*] If I were you… download original theme. caution: same version install git from https://git-scm.com/downloads [*] do Git Init in original theme, git add && git commit move .git folder (hidden) to your edited theme use git status, git diff… etc Be happy [*]Git detects all the diferences in your work directory. ciao [*]

How (or where) do I get wordpress plugin update download link?

The latest plugin update information is available by print_r(get_site_transient(‘update_plugins’)); or if you want to filter out wordpress.org plugins and make it more readable… $pluginupdates = get_site_transient(‘update_plugins’); foreach ($pluginupdates->response as $pluginupdate => $values) { if (!stristr($values->package,’wordpress.org’)) { echo “Plugin Name: “.$values->slug.” — “; echo “Update Package: “.$values->package.”<br>”.PHP_EOL; } } Of course, this will just return blank … Read more

Plugin upgrade failing during unzip

The name of the temporary file created by the download_url function is 118 characters long. The length of this is causing the full path name of some files or directories created during the unzip process to be longer than the allowable length on Windows. Therefore an error is thrown and the plugin upgrade fails. I … Read more

opcache_reset on plugin/theme/core update

Several comments just in case, you probably should check that the PHP version is 5.5 and above before calling the function (or check for its existence, not sure if an equivalent function existed in the original APC under the same name) You priority is too high. You actually want to call it after all other … Read more

How to keep cache files after plugin update?

Ok, after having digged into WP source for a couple of hours, found a workaround. Simply tell wordpress to NOT remove old files. Now files are 100% overwritten and cached files maintained. Code is really simple add_filter(‘upgrader_package_options’, ‘avoid_deletion’, 999); function avoid_deletion($options) { if($options[‘hook_extra’][‘plugin’] == ‘my-plugin/my-plugin.php’) { $options[“clear_destination”] = false; $options[“abort_if_destination_exists”] = false; } return $options; … Read more

Site Cookie Error, Redirection and Blank Pages after Upgrade

There are newlines being generated before your <!DOCTYPE> declaration, which you can see by viewing the source code of your site from your browser: As Rarst suggested, there is probably some incompatible code that is causing this output to be generated. The extra whitespace can cause the issues you’ve described. There are many resources on … Read more

What do WordPress auto updates include?

Yes there are a lot of benefits. There are 2 types of release: Major WordPress releases, e.g. 4.0, 4.1, 4.2 Minor releases e.g. 4.1.1, 4.1.2, etc Normally if a major security hole is discovered, it’s backported to the older major versions, usually the previous 3 or so ( I forget exactly how many ). Keep … Read more

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