Support » Plugin: Broken Link Checker » php 7.2 Deprecated function

  • Resolved klever

    (@klever)


    PHP Deprecated: Function create_function() is deprecated in ../wp-content/plugi

Viewing 3 replies - 1 through 3 (of 3 total)
  • jarledb

    (@jarledb)

    From what I can tell this plugin seems abandoned.

    Here is the problem:
    /wp-content/plugins/broken-link-checker/modules/checkers/http.php: create_function(‘$str’,’return rawurlencode($str[0]);’),

    Just change the whole function to:

    function urlencodefix($url){
    	//TODO: Remove/fix this. Probably not a good idea to "fix" invalid URLs like that.
    	return preg_replace_callback(
    		'|[^a-z0-9\+\-\/\\#:.,;=?!&%@()$\|*~_]|i',
    		function ($str) {
    			return rawurlencode($str[0]);
    		},
    		$url);
    }
    Kouteki

    (@kouteki)

    Plugin has been updated to support PHP7.2 and WP 5.1.1. These two were the cause for a lot of the recent bugs.

    Please let me know if the issue persists with the latest version of BLC.

    Cheers,
    Nemanja

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