You appear to be a bot. Output may be restricted
Description
See if this is a permalinkIf so, we need to
- ensure the domain is set
- set the text label for the link ( add a new entry to the $parts array )
Usage
$updated = bw_check_permalink( $parts, $path0, $path1 );
Parameters
- $parts
- ( array ) required –
- $path0
- ( string ) required –
- $path1
- ( string ) required –
Returns
updated $partsSource
File name: oik/shortcodes/oik-link.phpLines:
1 to 14 of 14
function bw_check_permalink( $parts, $path0, $path1 ) { global $wp_rewrite; //bw_trace2( $wp_rewrite ); $rewrite = $wp_rewrite->wp_rewrite_rules(); $_SERVER['PATH_INFO'] = $parts['path']; //unset( $_SERVER['REQUEST_URI'] ); $bwWP = new WP( $parts['path'] ); $bwWP->parse_request(); bw_trace2( $bwWP, "bwWP" ); return( $parts ); }View on GitHub View on Trac