Ticket #25586: 25586.7.diff
| File 25586.7.diff, 1.9 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 drop-down. 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 * Enable the Global Settings section on the My Sites screen. 83 * 84 * By default, the Global Settings section is hidden. Passing a non-empty 85 * string to this filter will enable the section, and allow new settings 86 * to be added, either globally or for specific sites. 87 * 88 * @since MU 89 * 90 * @param string $settings_html The settings HTML markup. Default empty. 91 * @param object $context Context of the setting (global or site-specific). Default 'global'. 92 */ 76 93 $settings_html = apply_filters( 'myblogs_options', '', 'global' ); 77 94 if ( $settings_html != '' ) { 78 95 echo '<tr><td valign="top"><h3>' . __( 'Global Settings' ) . '</h3></td><td>'; … … 102 119 $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;'; 103 120 echo "<td valign='top' style='$s'>"; 104 121 echo "<h3>{$user_blog->blogname}</h3>"; 122 /** 123 * Filter the displayed links for each site. 124 * 125 * @since MU 126 * 127 * @param string $string The HTML link markup. 128 * @param object $user_blog An object containing the site data. 129 */ 105 130 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>"; 131 /** This filter is documented in wp-admin/my-sites.php */ 106 132 echo apply_filters( 'myblogs_options', '', $user_blog ); 107 133 echo "</td>"; 108 134 $i++;