Changeset 26284 for trunk/src/wp-admin/my-sites.php
- Timestamp:
- 11/20/2013 03:35:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/my-sites.php
r25616 r26284 69 69 <?php 70 70 choose_primary_blog(); 71 /** 72 * Fires before the sites table on the My Sites screen. 73 * 74 * @since 3.0.0 75 */ 71 76 do_action( 'myblogs_allblogs_options' ); 72 77 ?> … … 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 != '' ) { … … 103 120 echo "<td valign='top' style='$s'>"; 104 121 echo "<h3>{$user_blog->blogname}</h3>"; 122 /** 123 * Filter the row links displayed for each site on the My Sites screen. 124 * 125 * @since MU 126 * 127 * @param string $string The HTML site 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>";
Note: See TracChangeset
for help on using the changeset viewer.