@@ 146-156 (lines=11) @@ | ||
143 | * |
|
144 | * @param bool $wp_admin Optional. Whether links should point to Calypso or wp-admin. Default false (Calypso). |
|
145 | */ |
|
146 | public function add_posts_menu( $wp_admin = false ) { |
|
147 | if ( $wp_admin ) { |
|
148 | return; |
|
149 | } |
|
150 | ||
151 | $submenus_to_update = array( |
|
152 | 'edit.php' => 'https://wordpress.com/posts/' . $this->domain, |
|
153 | 'post-new.php' => 'https://wordpress.com/post/' . $this->domain, |
|
154 | ); |
|
155 | $this->update_submenus( 'edit.php', $submenus_to_update ); |
|
156 | } |
|
157 | ||
158 | /** |
|
159 | * Adds Media menu. |
|
@@ 178-188 (lines=11) @@ | ||
175 | * |
|
176 | * @param bool $wp_admin Optional. Whether links should point to Calypso or wp-admin. Default false (Calypso). |
|
177 | */ |
|
178 | public function add_page_menu( $wp_admin = false ) { |
|
179 | if ( $wp_admin ) { |
|
180 | return; |
|
181 | } |
|
182 | ||
183 | $submenus_to_update = array( |
|
184 | 'edit.php?post_type=page' => 'https://wordpress.com/pages/' . $this->domain, |
|
185 | 'post-new.php?post_type=page' => 'https://wordpress.com/page/' . $this->domain, |
|
186 | ); |
|
187 | $this->update_submenus( 'edit.php?post_type=page', $submenus_to_update ); |
|
188 | } |
|
189 | ||
190 | /** |
|
191 | * Adds Testimonials menu. |