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