@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | return str_replace( '/', '::', $url ); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $file |
|
52 | + */ |
|
50 | 53 | function wpcom_static_url( $file ) { |
51 | 54 | $i = hexdec( substr( md5( $file ), - 1 ) ) % 2; |
52 | 55 | $url = 'http://s' . $i . '.wp.com' . $file; |
@@ -220,6 +223,9 @@ discard block |
||
220 | 223 | return $primary_anchor . $secondary_anchor; |
221 | 224 | } |
222 | 225 | |
226 | + /** |
|
227 | + * @param string $class |
|
228 | + */ |
|
223 | 229 | public function create_menu_item_anchor( $class, $url, $label, $id ) { |
224 | 230 | return '<a href="' . $url . '" class="' . $class . '" id="' . $id . '">' . $label . '</a>'; |
225 | 231 | } |