Ticket #25586: wp-sites.diff
File wp-sites.diff, 2.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/my-sites.php
67 67 ?> 68 68 <form id="myblogs" action="" method="post"> 69 69 <?php 70 choose_primary_blog(); 70 choose_primary_blog(); 71 /** 72 * Fires after displays the selectbox for choose primary blog. 73 * @since 3.0.0 74 */ 71 75 do_action( 'myblogs_allblogs_options' ); 72 76 ?> 73 77 <br clear="all" /> 74 78 <table class="widefat fixed"> 75 79 <?php 80 /** 81 * Filter the myblogs options. 82 * 83 * @since MU 84 * 85 * @param string none Blank. 86 * @param string 'global' The text "global". 87 */ 76 88 $settings_html = apply_filters( 'myblogs_options', '', 'global' ); 77 89 if ( $settings_html != '' ) { 78 90 echo '<tr><td valign="top"><h3>' . __( 'Global Settings' ) . '</h3></td><td>'; … … 102 114 $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; 103 115 echo "<td valign='top' style='$s'>"; 104 116 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>"; 117 $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>"; 118 /** 119 * Filter myblogs blog actions 120 * 121 * @since MU 122 * 123 * @param string $blog_actions The links of blog actions. 124 * @param object $user_blog An object of user's blog. 125 */ 126 echo "<p>" . apply_filters( 'myblogs_blog_actions', $blog_actions, $user_blog ) . "</p>"; 127 /** 128 * Filter the myblogs options. 129 * 130 * @since MU 131 * 132 * @param string none Blank. 133 * @param object $user_blog An object of user's blog. 134 */ 106 135 echo apply_filters( 'myblogs_options', '', $user_blog ); 107 136 echo "</td>"; 108 137 $i++;