wp/wp-admin/link.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    58 		// For each link id (in $linkcheck[]) change category to selected value.
    58 		// For each link id (in $linkcheck[]) change category to selected value.
    59 		if ( count( $linkcheck ) === 0 ) {
    59 		if ( count( $linkcheck ) === 0 ) {
    60 			wp_redirect( $this_file );
    60 			wp_redirect( $this_file );
    61 			exit;
    61 			exit;
    62 		}
    62 		}
    63 		$all_links = join( ',', $linkcheck );
    63 		$all_links = implode( ',', $linkcheck );
    64 		/*
    64 		/*
    65 		 * Should now have an array of links we can change:
    65 		 * Should now have an array of links we can change:
    66 		 *     $q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)");
    66 		 *     $q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)");
    67 		 */
    67 		 */
    68 
    68