Make WordPress Core

Changeset 11812


Ignore:
Timestamp:
08/13/2009 08:52:41 PM (15 years ago)
Author:
westi
Message:

Fix two more notices in the APP implementation. This time in the root /service page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r11810 r11812  
    356356        $categories_url = esc_attr($this->get_categories_url());
    357357        $media_url = esc_attr($this->get_attachments_url());
     358        $accepted_media_types = '';
    358359        foreach ($this->media_content_types as $med) {
    359360            $accepted_media_types = $accepted_media_types . "<accept>" . $med . "</accept>";
     
    878879     */
    879880    function get_entries_url($page = null) {
    880         if($GLOBALS['post_type'] == 'attachment') {
     881        if ( isset($GLOBALS['post_type']) && ( $GLOBALS['post_type'] == 'attachment' ) ) {
    881882            $path = $this->MEDIA_PATH;
    882883        } else {
Note: See TracChangeset for help on using the changeset viewer.