art_of_week' ) ) { default : case 0 : return "WEEK( $column, 0 )"; case 1 : return "WEEK( $column, 1 )"; case 2 : case 3 : case 4 : case 5 : case 6 : return "WEEK( DATE_SUB( $column, INTERVAL $start_of_week DAY ), 0 )"; } } /** * Finds hierarchy loops using a callback function that maps object IDs to parent IDs. * * @since 3.1.0 * @access private * * @param callback $callback function that accepts ( ID, $callback_args ) and outputs parent_ID * @param int $start The ID to start the loop check at * @param int $start_parent the parent_ID of $start to use instead of calling $callback( $start ). Use null to always use $callback * @param array $callback_args optional additional arguments to send to $callback * @return array IDs of all members of loop */ function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_args = array() ) { $override = is_null( $start_parent ) ? array() : array( $start => $start_parent ); if ( !$arbitrary_loop_member = wp_find_hierarchy_loop_tortoise_hare( $callback, $start, $override, $callback_args ) ) return array(); return wp_find_hierarchy_loop_tortoise_hare( $callback, $arbitrary_loop_member, $override, $callback_args, true ); } /** * Uses the "The Tortoise and the Hare" algorithm to detect loops. * * For every step of the algorithm, the hare takes two steps and the tortoise one. * If the hare ever laps the tortoise, there must be a loop. * * @since 3.1.0 * @access private * * @param callback $callback function that accepts ( ID, callback_arg, ... ) and outputs parent_ID * @param int $start The ID to start the loop check at * @param array $override an array of ( ID => parent_ID, ... ) to use instead of $callback * @param array $callback_args optional additional arguments to send to $callback * @param bool $_return_loop Return loop members or just detect presence of loop? * Only set to true if you already know the given $start is part of a loop * (otherwise the returned array might include branches) * @return mixed scalar ID of some arbitrary member of the loop, or array of IDs of all members of loop if $_return_loop */ function wp_find_hierarchy_loop_tortoise_hare( $callback, $start, $override = array(), $callback_args = array(), $_return_loop = false ) { $tortoise = $hare = $evanescent_hare = $start; $return = array(); // Set evanescent_hare to one past hare // Increment hare two steps while ( $tortoise && ( $evanescent_hare = isset( $override[$hare] ) ? $override[$hare] : call_user_func_array( $callback, array_merge( array( $hare ), $callback_args ) ) ) && ( $hare = isset( $override[$evanescent_hare] ) ? $override[$evanescent_hare] : call_user_func_array( $callback, array_merge( array( $evanescent_hare ), $callback_args ) ) ) ) { if ( $_return_loop ) $return[$tortoise] = $return[$evanescent_hare] = $return[$hare] = true; // tortoise got lapped - must be a loop if ( $tortoise == $evanescent_hare || $tortoise == $hare ) return $_return_loop ? $return : $tortoise; // Increment tortoise by one step $tortoise = isset( $override[$tortoise] ) ? $override[$tortoise] : call_user_func_array( $callback, array_merge( array( $tortoise ), $callback_args ) ); } return false; } /** * Send a HTTP header to limit rendering of pages to same origin iframes. * * @link https://developer.mozilla.org/en/the_x-frame-options_response_header * * @since 3.1.3 * @return none */ function send_frame_options_header() { @header( 'X-Frame-Options: SAMEORIGIN' ); } /** * Retrieve a list of protocols to allow in HTML attributes. * * @since 3.3.0 * @see wp_kses() * @see esc_url() * * @return array Array of allowed protocols */ function wp_allowed_protocols() { static $protocols; if ( empty( $protocols ) ) { $protocols = array( 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' ); $protocols = apply_filters( 'kses_allowed_protocols', $protocols ); } return $protocols; } ?> 'send_frame_options_header', 10, 0 ); add_action( 'importer_scheduled_cleanup', 'wp_delete_attachment' ); add_action( 'upgrader_scheduled_cleanup', 'wp_delete_attachment' ); // Navigation menu actions add_action( 'delete_post', '_wp_delete_post_menu_item' ); add_action( 'delete_term', '_wp_delete_tax_menu_item' ); add_action( 'transition_post_status', '_wp_auto_add_pages_to_menu', 10, 3 ); // Post Thumbnail CSS class filtering add_action( 'begin_fetch_post_thumbnail_html', '_wp_post_thumbnail_class_filter_add' ); add_action( 'end_fetch_post_thumbnail_html', '_wp_post_thumbnail_class_filter_remove' ); // Redirect Old Slugs add_action( 'template_redirect', 'wp_old_slug_redirect' ); add_action( 'post_updated', 'wp_check_for_changed_slugs', 12, 3 ); // Nonce check for Post Previews add_action( 'init', '_show_post_preview' ); // Timezone add_filter( 'pre_option_gmt_offset','wp_timezone_override_offset' ); // Admin Color Schemes add_action( 'admin_init', 'register_admin_color_schemes', 1); add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); unset($filter, $action); ?>
Warning: Cannot modify header information - headers already sent by (output started at /home/wb77477/onthemove-en/wp-includes/functions.php:4699) in /home/wb77477/onthemove-en/wp-includes/pluggable.php on line 866