@@ 108-110 (lines=3) @@ | ||
105 | ||
106 | // If 'title' is not specified and our path pattern contains a $1 |
|
107 | // Add a default 'title' => '$1' rule to the parameters. |
|
108 | if ( !isset( $params['title'] ) && strpos( $path, '$1' ) !== false ) { |
|
109 | $params['title'] = '$1'; |
|
110 | } |
|
111 | // If the user explicitly marked 'title' as false then omit it from the matches |
|
112 | if ( isset( $params['title'] ) && $params['title'] === false ) { |
|
113 | unset( $params['title'] ); |
|
@@ 112-114 (lines=3) @@ | ||
109 | $params['title'] = '$1'; |
|
110 | } |
|
111 | // If the user explicitly marked 'title' as false then omit it from the matches |
|
112 | if ( isset( $params['title'] ) && $params['title'] === false ) { |
|
113 | unset( $params['title'] ); |
|
114 | } |
|
115 | ||
116 | // Loop over our parameters and convert basic key => string |
|
117 | // patterns into fully descriptive array form |