title: Deprecated: preg_replace(): The /e modifier is deprecated error
body: <p>Hi I'm working on wordpress theme and write a custom widget it's working properly. But when I make wp_debug = true it's giving this error</p>
  
  <p>Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ....</p>
  
  <p>Here is the my preg_replace code</p>
  
  <pre><code>$status = preg_replace("/((http:\/\/|https:\/\/)[^ )]+)/e", "'&lt;a href=\"$1\" title=\"$1\" $target &gt;'. ((strlen('$1')&gt;=$linkMaxLen ? substr('$1',0,$linkMaxLen).'...':'$1')).'&lt;/a&gt;'", $status);
  </code></pre>
  
  <p>I'm trying change it like this</p>
  
  <pre><code>$status = preg_replace_callback(
                  "/((http:\/\/|https:\/\/)[^ )]+)/e",
                  function($matches) {
                      return "'&lt;a href=\"$1\" title=\"$1\" $target &gt;'. ((strlen('$1')&gt;=$linkMaxLen ? substr('$1',0,$linkMaxLen).'...':'$1')).'&lt;/a&gt;'";
                  },
                  $status
              );
  </code></pre>
  
  <p>But it's not working. How can I fix this?</p>