WordPress.org

Make WordPress Core

Ticket #31844: 31844.patch

File 31844.patch, 3.0 KB (added by ramiy, 5 years ago)
  • site-info.php

     
    8888}
    8989
    9090$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    91 $title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
    92 $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
     91$title_site_url_linked = sprintf(
     92        __('Edit Site: %s'),
     93        '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>'
     94);
     95$title = sprintf(
     96        __('Edit Site: %s'),
     97        $site_url_no_http
     98);
    9399
    94100$parent_file = 'sites.php';
    95101$submenu_file = 'sites.php';
  • site-settings.php

     
    7676}
    7777
    7878$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    79 $title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
    80 $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
     79$title_site_url_linked = sprintf(
     80        __('Edit Site: %s'),
     81        '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>'
     82);
     83$title = sprintf(
     84        __('Edit Site: %s'),
     85        $site_url_no_http
     86);
    8187
    8288$parent_file = 'sites.php';
    8389$submenu_file = 'sites.php';
  • site-themes.php

     
    130130add_screen_option( 'per_page' );
    131131
    132132$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    133 $title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
    134 $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
     133$title_site_url_linked = sprintf(
     134        __('Edit Site: %s'),
     135        '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>'
     136);
     137$title = sprintf(
     138        __('Edit Site: %s'),
     139        $site_url_no_http
     140);
    135141
    136142$parent_file = 'sites.php';
    137143$submenu_file = 'sites.php';
  • site-users.php

     
    158158add_screen_option( 'per_page' );
    159159
    160160$site_url_no_http = preg_replace( '#^http(s)?://#', '', get_blogaddress_by_id( $id ) );
    161 $title_site_url_linked = sprintf( __('Edit Site: <a href="%1$s">%2$s</a>'), get_blogaddress_by_id( $id ), $site_url_no_http );
    162 $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
     161$title_site_url_linked = sprintf(
     162        __('Edit Site: %s'),
     163        '<a href="' . get_blogaddress_by_id( $id ) . '">' . $site_url_no_http . '</a>'
     164);
     165$title = sprintf(
     166        __('Edit Site: %s'),
     167        $site_url_no_http
     168);
    163169
    164170$parent_file = 'sites.php';
    165171$submenu_file = 'sites.php';