Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#23264 closed enhancement (invalid)

Add filter for default links for multisite installs

Reported by: fliespl's profile fliespl Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Multisite Keywords:
Focuses: Cc:

Description

Topic says it all. It would be great to add filter to the array of default links, as other parts are customizable either through filters or site entries in the database.

Change:

	foreach ( $default_links as $link ) {
		$wpdb->insert( $wpdb->links, $link);
		$wpdb->insert( $wpdb->term_relationships, array('term_taxonomy_id' => $blogroll_tt_id, 'object_id' => $wpdb->insert_id) );
	}

to:

	foreach ( $default_links as $link ) {
		$wpdb->insert( $wpdb->links, $link);
		$wpdb->insert( $wpdb->term_relationships, array('term_taxonomy_id' => $blogroll_tt_id, 'object_id' => $wpdb->insert_id) );
	}
	
	$default_links = apply_filters( 'wp_install_default_links', $default_links );

Change History (1)

#1 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Default links were removed in [21500].

Note: See TracTickets for help on using tickets.