Ticket #25586: wp-sites.5.diff
| File wp-sites.5.diff, 2.1 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/my-sites.php
68 68 <form id="myblogs" action="" method="post"> 69 69 <?php 70 70 choose_primary_blog(); 71 /** 72 * Fires after displaying the Choose Primary Site dropdown. 73 * 74 * @since 3.0.0 75 */ 71 76 do_action( 'myblogs_allblogs_options' ); 72 77 ?> 73 78 <br clear="all" /> 74 79 <table class="widefat fixed"> 75 80 <?php 81 //duplicate_hook 82 /** 83 * Add settings to the Edit Site Settings screen. 84 * 85 * @since MU 86 * 87 * @param string none Blank. 88 * @param string 'global' The text "global". 89 */ 76 90 $settings_html = apply_filters( 'myblogs_options', '', 'global' ); 77 91 if ( $settings_html != '' ) { 78 92 echo '<tr><td valign="top"><h3>' . __( 'Global Settings' ) . '</h3></td><td>'; … … 102 116 $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; 103 117 echo "<td valign='top' style='$s'>"; 104 118 echo "<h3>{$user_blog->blogname}</h3>"; 105 echo "<p>" . apply_filters( 'myblogs_blog_actions', "<a href='" . esc_url( get_home_url( $user_blog->userblog_id ) ). "'>" . __( 'Visit' ) . "</a> | <a href='" . esc_url( get_admin_url( $user_blog->userblog_id ) ) . "'>" . __( 'Dashboard' ) . "</a>", $user_blog ) . "</p>"; 119 $blog_actions = "<a href='" . esc_url( get_home_url( $user_blog->userblog_id ) ). "'>" . __( 'Visit' ) . "</a> | <a href='" . esc_url( get_admin_url( $user_blog->userblog_id ) ) . "'>" . __( 'Dashboard' ) . "</a>"; 120 /** 121 * Filter the displayed links for each site. 122 * 123 * @since MU 124 * 125 * @param string $blog_actions The links of blog actions. 126 * @param object $user_blog An object of user's blog. 127 */ 128 echo "<p>" . apply_filters( 'myblogs_blog_actions', $blog_actions, $user_blog ) . "</p>"; 129 /** 130 * Filter the myblogs options. 131 * 132 * @since MU 133 * 134 * @param string none Blank. 135 * @param object $user_blog An object of user's blog. 136 */ 106 137 echo apply_filters( 'myblogs_options', '', $user_blog ); 107 138 echo "</td>"; 108 139 $i++;