Skip to content
Snippets Groups Projects
Commit 6658a431 authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

str_replace does not fix by reference and returns a value instead.

Assign the replace value so that this actually works.
parent e015fcc1
No related branches found
No related tags found
No related merge requests found
......@@ -361,7 +361,7 @@ class WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements WP_Client {
public static function save_settings( $site_ID ) {
str_replace( '/xmlrpc.php', '', $_POST['site_url'] );
$_POST['site_url'] = str_replace( '/xmlrpc.php', '', $_POST['site_url'] );
update_post_meta( $site_ID, 'syn_site_url', esc_url_raw( $_POST['site_url'] ) );
update_post_meta( $site_ID, 'syn_site_username', sanitize_text_field( $_POST['site_username'] ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment