1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenScripts: Replace Deprecated WordPress Hook

The function xf_swf_post_params needs to be replaced

  1. LPH
    The function xf_swf_post_params needs to be replaced. The hook swfupload_post_params is deprecated.

    PHP:
    1.  
    2. function xf_swf_post_params($params)
    3. {
    4.     $params['auth_cookie'] = $_COOKIE[xf_session];
    5.     return $params;
    6. }
    7.  
    8. // add_filter('swfupload_post_params', 'xf_swf_post_params');
    9. add_filter('upload_post_params', 'xf_swf_post_params');
    10.  
    The function is located in the xf_replacement_cookie_functions.php file.