Fix two more notices in the APP implementation. This time in the root /service page.
git-svn-id: https://develop.svn.wordpress.org/trunk@11812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
31387fd45c
commit
bd084996dd
@ -355,6 +355,7 @@ class AtomServer {
|
|||||||
$entries_url = esc_attr($this->get_entries_url());
|
$entries_url = esc_attr($this->get_entries_url());
|
||||||
$categories_url = esc_attr($this->get_categories_url());
|
$categories_url = esc_attr($this->get_categories_url());
|
||||||
$media_url = esc_attr($this->get_attachments_url());
|
$media_url = esc_attr($this->get_attachments_url());
|
||||||
|
$accepted_media_types = '';
|
||||||
foreach ($this->media_content_types as $med) {
|
foreach ($this->media_content_types as $med) {
|
||||||
$accepted_media_types = $accepted_media_types . "<accept>" . $med . "</accept>";
|
$accepted_media_types = $accepted_media_types . "<accept>" . $med . "</accept>";
|
||||||
}
|
}
|
||||||
@ -877,7 +878,7 @@ EOD;
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_entries_url($page = null) {
|
function get_entries_url($page = null) {
|
||||||
if($GLOBALS['post_type'] == 'attachment') {
|
if ( isset($GLOBALS['post_type']) && ( $GLOBALS['post_type'] == 'attachment' ) ) {
|
||||||
$path = $this->MEDIA_PATH;
|
$path = $this->MEDIA_PATH;
|
||||||
} else {
|
} else {
|
||||||
$path = $this->ENTRIES_PATH;
|
$path = $this->ENTRIES_PATH;
|
||||||
|
Loading…
Reference in New Issue
Block a user