Ticket #25586: 25586.6.diff
| File 25586.6.diff, 1.7 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 /** 82 * Filter the settings on the My Sites screen. 83 * 84 * @since MU 85 * 86 * @param string $settings_html The settings HTML markup. Default empty. 87 * @param object $context Context of the setting (global or site-specific). Default 'global'. 88 */ 76 89 $settings_html = apply_filters( 'myblogs_options', '', 'global' ); 77 90 if ( $settings_html != '' ) { 78 91 echo '<tr><td valign="top"><h3>' . __( 'Global Settings' ) . '</h3></td><td>'; … … 102 115 $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; 103 116 echo "<td valign='top' style='$s'>"; 104 117 echo "<h3>{$user_blog->blogname}</h3>"; 118 /** 119 * Filter the displayed links for each site. 120 * 121 * @since MU 122 * 123 * @param string $string The blog's action links. 124 * @param object $user_blog An object of user's blog. 125 */ 105 126 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>"; 127 /** This filter is documented in wp-admin/my-sites.php */ 106 128 echo apply_filters( 'myblogs_options', '', $user_blog ); 107 129 echo "</td>"; 108 130 $i++;