Make WordPress Core

Changeset 21947


Ignore:
Timestamp:
09/21/2012 10:27:51 PM (14 years ago)
Author:
nacin
Message:

Revert JS from [21921] as it breaks saving when no post date fields are present. see #17180.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/post.js

    r21944 r21947  
    527527                        }
    528528                        return false;
    529                 });
    530 
    531                 $('#post').submit(function(e){
    532                         if ( !updateText() ) {
    533                                 e.preventDefault();
    534                                 $('#timestampdiv').show();
    535                                 $('#publishing-action .ajax-loading').css('visibility', 'hidden');
    536                                 $('#publish').prop('disabled', false).removeClass('button-primary-disabled');
    537                                 return false;
    538                         }
    539529                });
    540530
Note: See TracChangeset for help on using the changeset viewer.