wp/wp-includes/class-wp-matchesmapregex.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    81 	 *
    81 	 *
    82 	 * @param array $matches preg_replace regexp matches
    82 	 * @param array $matches preg_replace regexp matches
    83 	 * @return string
    83 	 * @return string
    84 	 */
    84 	 */
    85 	public function callback( $matches ) {
    85 	public function callback( $matches ) {
    86 		$index = intval( substr( $matches[0], 9, -1 ) );
    86 		$index = (int) substr( $matches[0], 9, -1 );
    87 		return ( isset( $this->_matches[ $index ] ) ? urlencode( $this->_matches[ $index ] ) : '' );
    87 		return ( isset( $this->_matches[ $index ] ) ? urlencode( $this->_matches[ $index ] ) : '' );
    88 	}
    88 	}
    89 }
    89 }