|
@@ 118-128 (lines=11) @@
|
| 115 |
|
* |
| 116 |
|
* @param bool $wp_admin Optional. Whether links should point to Calypso or wp-admin. Default false (Calypso). |
| 117 |
|
*/ |
| 118 |
|
public function add_posts_menu( $wp_admin = false ) { |
| 119 |
|
if ( $wp_admin ) { |
| 120 |
|
return; |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
$submenus_to_update = array( |
| 124 |
|
'edit.php' => 'https://wordpress.com/posts/' . $this->domain, |
| 125 |
|
'post-new.php' => 'https://wordpress.com/post/' . $this->domain, |
| 126 |
|
); |
| 127 |
|
$this->update_submenus( 'edit.php', $submenus_to_update ); |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
/** |
| 131 |
|
* Adds Media menu. |
|
@@ 150-160 (lines=11) @@
|
| 147 |
|
* |
| 148 |
|
* @param bool $wp_admin Optional. Whether links should point to Calypso or wp-admin. Default false (Calypso). |
| 149 |
|
*/ |
| 150 |
|
public function add_page_menu( $wp_admin = false ) { |
| 151 |
|
if ( $wp_admin ) { |
| 152 |
|
return; |
| 153 |
|
} |
| 154 |
|
|
| 155 |
|
$submenus_to_update = array( |
| 156 |
|
'edit.php?post_type=page' => 'https://wordpress.com/pages/' . $this->domain, |
| 157 |
|
'post-new.php?post_type=page' => 'https://wordpress.com/page/' . $this->domain, |
| 158 |
|
); |
| 159 |
|
$this->update_submenus( 'edit.php?post_type=page', $submenus_to_update ); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
/** |
| 163 |
|
* Adds Testimonials menu. |