From 366ec85420d7ef67743fb7626c7e4e7a02fbf2b6 Mon Sep 17 00:00:00 2001
From: Josh Betz <j@joshbetz.com>
Date: Thu, 9 Jan 2014 13:21:17 -0600
Subject: [PATCH] Fix link to new sitegroup

When there are no site groups, we should a link to create one.
The taxonomy slug and post type slug were both wrong, presumably
because there were changed at some point and these references
weren't updated.
---
 includes/class-wp-push-syndication-server.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/class-wp-push-syndication-server.php b/includes/class-wp-push-syndication-server.php
index 979852e..d270fdb 100644
--- a/includes/class-wp-push-syndication-server.php
+++ b/includes/class-wp-push-syndication-server.php
@@ -312,7 +312,7 @@ class WP_Push_Syndication_Server {
 		// if there are no sitegroups defined return
 		if( empty( $sitegroups ) ) {
 			echo '<p>' . esc_html__( 'No sitegroups defined yet. You must group your sites into sitegroups to syndicate content', 'push-syndication' ) . '</p>';
-			echo '<p><a href="' . esc_url( get_admin_url() . 'edit-tags.php?taxonomy=sitegroups&post_type=site' ) . '" target="_blank" >' . esc_html__( 'Create new', 'push-syndication' ) . '</a></p>';
+			echo '<p><a href="' . esc_url( get_admin_url() . 'edit-tags.php?taxonomy=syn_sitegroup&post_type=syn_site' ) . '" target="_blank" >' . esc_html__( 'Create new', 'push-syndication' ) . '</a></p>';
 			return;
 		}
 
@@ -732,7 +732,7 @@ class WP_Push_Syndication_Server {
 		// if there are no sitegroups defined return
 		if( empty( $sitegroups ) ) {
 			echo '<p>' . esc_html__( 'No sitegroups defined yet. You must group your sites into sitegroups to syndicate content', 'push-syndication' ) . '</p>';
-			echo '<p><a href="' . esc_url( get_admin_url() . 'edit-tags.php?taxonomy=sitegroups&post_type=site' ) . '" target="_blank" >' . esc_html__( 'Create new', 'push-syndication' ) . '</a></p>';
+			echo '<p><a href="' . esc_url( get_admin_url() . 'edit-tags.php?taxonomy=syn_sitegroup&post_type=syn_site' ) . '" target="_blank" >' . esc_html__( 'Create new', 'push-syndication' ) . '</a></p>';
 			return;
 		}
 
-- 
GitLab