Changeset 8828

Show
Ignore:
Timestamp:
09/05/08 23:29:30 (3 months ago)
Author:
westi
Message:

Fix Notice. Mark unreachable code as TODO.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit.php

    r8827 r8828  
    8080    if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) 
    8181        $post_status_label = $post_stati[$_GET['post_status']][1]; 
    82     //if ( $post_listing_pageable && !is_archive() && !is_search() ) //Unreachable code: $post_listing_pageable is undefined, Similar code in upload.php 
     82    //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in upload.php 
     83    //if ( $post_listing_pageable && !is_archive() && !is_search() )  
    8384    //  $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_status_label) : sprintf(__('Latest %s'), $post_status_label); 
    8485    //else 
  • trunk/wp-admin/upload.php

    r8827 r8828  
    7474    if ( isset($_GET['post_mime_type']) && in_array( $_GET['post_mime_type'], array_keys($post_mime_types) ) ) 
    7575        $post_mime_type_label = $post_mime_types[$_GET['post_mime_type']][1]; 
    76     if ( $post_listing_pageable && !is_archive() && !is_search() ) 
    77         $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_mime_type_label) : sprintf(__('Latest %s'), $post_mime_type_label); 
    78     else 
     76    //TODO: Unreachable code: $post_listing_pageable is undefined, Similar code in edit.php 
     77    //if ( $post_listing_pageable && !is_archive() && !is_search() )  
     78    //  $h2_noun = is_paged() ? sprintf(__( 'Previous %s' ), $post_mime_type_label) : sprintf(__('Latest %s'), $post_mime_type_label); 
     79    //else 
    7980        $h2_noun = $post_mime_type_label; 
    8081    // Use $_GET instead of is_ since they can override each other