Make WordPress Core

Changeset 53840


Ignore:
Timestamp:
08/05/2022 06:10:04 AM (3 years ago)
Author:
audrasjb
Message:

Coding standards: Properly escape URLs returned by self_admin_url() calls.

This address some other echoed instances missed by [53839].

Fixes #56329.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r53839 r53840  
    828828                /* translators: %s: URL to WordPress Updates screen. */
    829829                ' ' . __( '<a href="%s" target="_parent">Click here to update WordPress</a>.' ),
    830                 self_admin_url( 'update-core.php' )
     830                esc_url( self_admin_url( 'update-core.php' ) )
    831831            );
    832832        }
  • trunk/src/wp-admin/update-core.php

    r53839 r53840  
    687687                    /* translators: 1: URL to WordPress Updates screen, 2: URL to Update PHP page. */
    688688                    __( '<a href="%1$s">Please update WordPress</a>, and then <a href="%2$s">learn more about updating PHP</a>.' ),
    689                     self_admin_url( 'update-core.php' ),
     689                    esc_url( self_admin_url( 'update-core.php' ) ),
    690690                    esc_url( wp_get_update_php_url() )
    691691                );
     
    700700                    /* translators: %s: URL to WordPress Updates screen. */
    701701                    __( '<a href="%s">Please update WordPress</a>.' ),
    702                     self_admin_url( 'update-core.php' )
     702                    esc_url( self_admin_url( 'update-core.php' ) )
    703703                );
    704704            } elseif ( current_user_can( 'update_php' ) ) {
     
    721721                    /* translators: %s: URL to WordPress Updates screen. */
    722722                    __( '<a href="%s">Please update WordPress</a>.' ),
    723                     self_admin_url( 'update-core.php' )
     723                    esc_url( self_admin_url( 'update-core.php' ) )
    724724                );
    725725            }
Note: See TracChangeset for help on using the changeset viewer.