mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -51,15 +51,6 @@ if ( $post_id ) {
|
||||
* @param int $post_id Optional. Post ID.
|
||||
*/
|
||||
function redirect_post($post_id = '') {
|
||||
global $action;
|
||||
|
||||
$referredby = '';
|
||||
if ( !empty($_POST['referredby']) ) {
|
||||
$referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']);
|
||||
$referredby = remove_query_arg('_wp_original_http_referer', $referredby);
|
||||
}
|
||||
$referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer());
|
||||
|
||||
if ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) {
|
||||
if ( isset($_POST['saveasdraft']) )
|
||||
$location = 'sidebar.php?a=c';
|
||||
|
||||
Reference in New Issue
Block a user