WordPress.org

Make WordPress Core

Ticket #28226: 28226-plugin.php-3.diff

File 28226-plugin.php-3.diff, 741 bytes (added by norcross, 6 years ago)

removed new network_page_url function, added self_admin_url to existing

  • plugin.php

     
    14421442        if ( isset( $_parent_pages[$menu_slug] ) ) {
    14431443                $parent_slug = $_parent_pages[$menu_slug];
    14441444                if ( $parent_slug && ! isset( $_parent_pages[$parent_slug] ) ) {
    1445                         $url = admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) );
     1445                        $url = self_admin_url( add_query_arg( 'page', $menu_slug, $parent_slug ) );
    14461446                } else {
    1447                         $url = admin_url( 'admin.php?page=' . $menu_slug );
     1447                        $url = self_admin_url( 'admin.php?page=' . $menu_slug );
    14481448                }
    14491449        } else {
    14501450                $url = '';
     
    14581458        return $url;
    14591459}
    14601460
     1461
    14611462//
    14621463// Pluggable Menu Support -- Private
    14631464//