Changeset 60954
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r60717 r60954 1005 1005 $network_id = (int) $network_id; 1006 1006 1007 /** 1008 * Fires before a network is populated. 1009 * 1010 * @since 6.9.0 1011 * 1012 * @param int $network_id ID of network to populate. 1013 * @param string $domain The domain name for the network. 1014 * @param string $email Email address for the network administrator. 1015 * @param string $site_name The name of the network. 1016 * @param string $path The path to append to the network's domain name. 1017 * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. 1018 */ 1019 do_action( 'before_populate_network', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); 1020 1007 1021 $errors = new WP_Error(); 1008 1022 if ( '' === $domain ) { … … 1124 1138 flush_rewrite_rules(); 1125 1139 1140 /** 1141 * Fires after a network is created when converting a single site to multisite. 1142 * 1143 * @since 6.9.0 1144 * 1145 * @param int $network_id ID of network created. 1146 * @param string $domain The domain name for the network. 1147 * @param string $email Email address for the network administrator. 1148 * @param string $site_name The name of the network. 1149 * @param string $path The path to append to the network's domain name. 1150 * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. 1151 */ 1152 do_action( 'after_upgrade_to_multisite', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); 1153 1126 1154 if ( ! $subdomain_install ) { 1127 1155 return true; … … 1169 1197 } 1170 1198 } 1199 1200 /** 1201 * Fires after a network is fully populated. 1202 * 1203 * @since 6.9.0 1204 * 1205 * @param int $network_id ID of network created. 1206 * @param string $domain The domain name for the network. 1207 * @param string $email Email address for the network administrator. 1208 * @param string $site_name The name of the network. 1209 * @param string $path The path to append to the network's domain name. 1210 * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. 1211 */ 1212 do_action( 'after_populate_network', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); 1171 1213 1172 1214 return true;
Note: See TracChangeset for help on using the changeset viewer.