diff --git wp-admin/includes/misc.php wp-admin/includes/misc.php
index 9df8805..fef68ae 100644
|
|
|
function got_mod_rewrite() { |
| 41 | 41 | * @return bool Whether the server supports URL rewriting. |
| 42 | 42 | */ |
| 43 | 43 | function got_url_rewrite() { |
| 44 | | $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() ); |
| | 44 | $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || $GLOBALS['is_hhvm'] || iis7_supports_permalinks() ); |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Filter whether URL rewriting is available. |
diff --git wp-admin/options-permalink.php wp-admin/options-permalink.php
index 28395e9..29ff188 100644
|
|
|
if ( $iis7_permalinks ) { |
| 127 | 127 | $writable = true; |
| 128 | 128 | else |
| 129 | 129 | $writable = false; |
| 130 | | } elseif ( $is_nginx ) { |
| | 130 | } elseif ( $is_nginx || $is_hhvm) { |
| 131 | 131 | $writable = false; |
| 132 | 132 | } else { |
| 133 | 133 | if ( ( ! file_exists( $home_path . '.htaccess' ) && is_writable( $home_path ) ) || is_writable( $home_path . '.htaccess' ) ) { |
| … |
… |
if ( ! is_multisite() ) { |
| 159 | 159 | _e('Permalink structure updated. Remove write access on web.config file now!'); |
| 160 | 160 | else |
| 161 | 161 | _e('Permalink structure updated.'); |
| 162 | | } elseif ( $is_nginx ) { |
| | 162 | } elseif ( $is_nginx || $is_hhvm) { |
| 163 | 163 | _e('Permalink structure updated.'); |
| 164 | 164 | } else { |
| 165 | 165 | if ( $permalink_structure && ! $usingpi && ! $writable && $update_required ) { |
| … |
… |
printf( __('If you like, you may enter custom structures for your category and t |
| 278 | 278 | <p><?php _e('If you temporarily make your site’s root directory writable for us to generate the <code>web.config</code> file automatically, do not forget to revert the permissions after the file has been created.') ?></p> |
| 279 | 279 | <?php endif; ?> |
| 280 | 280 | <?php endif; ?> |
| 281 | | <?php elseif ( ! $is_nginx ) : |
| | 281 | <?php elseif ( ! $is_nginx && ! $is_hhvm) : |
| 282 | 282 | if ( $permalink_structure && ! $usingpi && ! $writable && $update_required ) : ?> |
| 283 | 283 | <p><?php _e('If your <code>.htaccess</code> file were <a href="http://codex.wordpress.org/Changing_File_Permissions">writable</a>, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your <code>.htaccess</code> file. Click in the field and press <kbd>CTRL + a</kbd> to select all.') ?></p> |
| 284 | 284 | <form action="options-permalink.php" method="post"> |
diff --git wp-includes/vars.php wp-includes/vars.php
index 996d173..7477b36 100644
|
|
|
|
| 17 | 17 | |
| 18 | 18 | global $pagenow, |
| 19 | 19 | $is_lynx, $is_gecko, $is_winIE, $is_macIE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone, $is_IE, |
| 20 | | $is_apache, $is_IIS, $is_iis7, $is_nginx; |
| | 20 | $is_apache, $is_IIS, $is_iis7, $is_nginx, $is_hhvm; |
| 21 | 21 | |
| 22 | 22 | // On which page are we ? |
| 23 | 23 | if ( is_admin() ) { |
| … |
… |
$is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos( |
| 104 | 104 | $is_nginx = (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false); |
| 105 | 105 | |
| 106 | 106 | /** |
| | 107 | * Whether the server software is HHVM or something else |
| | 108 | * @global bool $is_hhvm |
| | 109 | */ |
| | 110 | $is_hhvm = (strpos($_SERVER['SERVER_SOFTWARE'], 'HPHP') !== false); |
| | 111 | |
| | 112 | /** |
| 107 | 113 | * Whether the server software is IIS or something else |
| 108 | 114 | * @global bool $is_IIS |
| 109 | 115 | */ |