Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I now got the paginating to work with a realy ugly hack:

    $page_links = paginate_links( array(
    //’base’ => add_query_arg( ‘paged’, ‘%#%’ ), // <– This does not work on Windows
    ‘base’ => ‘upload.php?style=inline&tab=browse-all&paged=%#%’,

    The only problem with this one is that when you browse to, for example, page 2 of the uploads the tab “Upload file” dissapears.

    If there’s someone who have greater knowledge of WP and how it’s build up this bug shouldn’t be to hard to fix. Alla that happens is that it doesn’t write out the part of the string that is most fundamental “upload.php”.

    Sorry the code should be:

    //$_href = clean_url( $href ); // <– This does not work on Windows
    $BH_temp = explode(“?”, clean_url( $href ));
    $href = ‘upload.php?’ . $BH_temp[1];
    $_href = $href;

    I replaced the clean_url line and replaced with the following:
    //$_href = clean_url( $href ); // <– This does not work on Windows
    //$BH_temp = explode(“?”, clean_url( $href ));
    //$href = ‘upload.php?’ . $BH_temp[1];
    $_href = $href;

    That works far enough to display the first page of uploads but when you want to browse to a second page the string “uploads.php” has once again disapered from the href.

Viewing 3 replies - 1 through 3 (of 3 total)