diff --git wp-includes/functions.php wp-includes/functions.php
index 5e0841c..6349ab8 100644
|
|
|
function get_temp_dir() { |
| 1437 | 1437 | /** |
| 1438 | 1438 | * Determine if a directory is writable. |
| 1439 | 1439 | * |
| 1440 | | * This function is used to work around certain ACL issues |
| | 1440 | * This function is used to work around certain ACL issues |
| 1441 | 1441 | * in PHP primarily affecting Windows Servers. |
| 1442 | 1442 | * |
| 1443 | 1443 | * @see win_is_writable() |
| … |
… |
function wp_is_writable( $path ) { |
| 1457 | 1457 | /** |
| 1458 | 1458 | * Workaround for Windows bug in is_writable() function |
| 1459 | 1459 | * |
| 1460 | | * PHP has issues with Windows ACL's for determine if a |
| | 1460 | * PHP has issues with Windows ACL's for determine if a |
| 1461 | 1461 | * directory is writable or not, this works around them by |
| 1462 | 1462 | * checking the ability to open files rather than relying |
| 1463 | 1463 | * upon PHP to interprate the OS ACL. |
| … |
… |
function url_is_accessable_via_ssl($url) |
| 2850 | 2850 | * @param string $function The function that was called |
| 2851 | 2851 | * @param string $version The version of WordPress that deprecated the function |
| 2852 | 2852 | * @param string $replacement Optional. The function that should have been called |
| | 2853 | * @param string $message Optional. A message regarding the change. |
| 2853 | 2854 | */ |
| 2854 | | function _deprecated_function( $function, $version, $replacement = null ) { |
| | 2855 | function _deprecated_function( $function, $version, $replacement = null, $message = '' ) { |
| 2855 | 2856 | |
| 2856 | | do_action( 'deprecated_function_run', $function, $replacement, $version ); |
| | 2857 | do_action( 'deprecated_function_run', $function, $replacement, $version, $message ); |
| 2857 | 2858 | |
| 2858 | 2859 | // Allow plugin to filter the output error trigger |
| 2859 | 2860 | if ( WP_DEBUG && apply_filters( 'deprecated_function_trigger_error', true ) ) { |
| | 2861 | $message = empty( $message ) ? '' : ' ' . $message; |
| 2860 | 2862 | if ( ! is_null($replacement) ) |
| 2861 | | trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) ); |
| | 2863 | trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $function, $version, $replacement ) . $message ); |
| 2862 | 2864 | else |
| 2863 | | trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) ); |
| | 2865 | trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) . $message ); |
| 2864 | 2866 | } |
| 2865 | 2867 | } |
| 2866 | 2868 | |