Title: Important suggestion: code update.
Last modified: August 7, 2021

---

# Important suggestion: code update.

 *  [darkfuria](https://wordpress.org/support/users/darkfuria/)
 * (@darkfuria)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/important-suggestion-code-update/)
 * I had a problem related to the URL being placed in CSS by Elementor. The plugin
   was not replacing the PATH for a relative PATH. The CSS was in the following 
   format: “background-image:url(ABSOLUTE_PATH);”
 * The solution was to add the following piece of codes after the row 131 from core.
   php:
 *     ```
       $page_html = str_replace('http://'.$_SERVER['HTTP_HOST'], '', $page_html);
       $page_html = str_replace('https://'.$_SERVER['HTTP_HOST'], '', $page_html);
       ```
   
    -  This topic was modified 4 years, 10 months ago by [darkfuria](https://wordpress.org/support/users/darkfuria/).
    -  This topic was modified 4 years, 10 months ago by [darkfuria](https://wordpress.org/support/users/darkfuria/).
    -  This topic was modified 4 years, 10 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: formatting
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fimportant-suggestion-code-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [darkfuria](https://wordpress.org/support/users/darkfuria/)
 * (@darkfuria)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/important-suggestion-code-update/#post-14743911)
 * What was done is not a 100% solution because there are cases where a URL contains
   another as a parameter, and in this case it can end up giving a problem. It is
   necessary to deal with regex. Some examples that may appear.
 *     ```
       ='http://meu-site.com.br'
       ="http://meu-site.com.br"
       :'http://meu-site.com.br'
       :"http://meu-site.com.br"
       url('http://meu-site.com.br')
       url("http://meu-site.com.br")
       ='https://meu-site.com.br'
       =&quot;https://meu-site.com.br&quot;
       :'https://meu-site.com.br'
       :&quot;https://meu-site.com.br&quot;
       url('https://meu-site.com.br')
       url(&quot;https://meu-site.com.br&quot;)
       ```
   
    -  This reply was modified 4 years, 10 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
    -  This reply was modified 4 years, 10 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: formatting
    -  This reply was modified 4 years, 10 months ago by [Yui](https://wordpress.org/support/users/fierevere/).

Viewing 1 replies (of 1 total)

The topic ‘Important suggestion: code update.’ is closed to new replies.

 * ![](https://ps.w.org/wp-ngrok/assets/icon.svg?rev=2430738)
 * [WP-ngrok](https://wordpress.org/plugins/wp-ngrok/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ngrok/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ngrok/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ngrok/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ngrok/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [darkfuria](https://wordpress.org/support/users/darkfuria/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/important-suggestion-code-update/#post-14743911)
 * Status: not a support question