Make WordPress Core

Changeset 28483


Ignore:
Timestamp:
05/18/2014 09:42:32 PM (12 years ago)
Author:
wonderboymusic
Message:

Remove public keyword from some JS functions. Sorry.

Props ocean90.
See #22234.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-header.php

    r28481 r28483  
    353353                header_text_fields;
    354354
    355         public function pickColor(color) {
     355        function pickColor(color) {
    356356                $('#name').css('color', color);
    357357                $('#desc').css('color', color);
     
    359359        }
    360360
    361         public function toggle_text() {
     361        function toggle_text() {
    362362                var checked = $('#display-header-text').prop('checked'),
    363363                        text_color;
     
    404404<script type="text/javascript">
    405405/* <![CDATA[ */
    406         public function onEndCrop( coords ) {
     406        function onEndCrop( coords ) {
    407407                jQuery( '#x1' ).val(coords.x);
    408408                jQuery( '#y1' ).val(coords.y);
     
    453453                        }
    454454                        ?>
    455                         onInit: public function () {
     455                        onInit: function () {
    456456                                jQuery('#width').val(xinit);
    457457                                jQuery('#height').val(yinit);
Note: See TracChangeset for help on using the changeset viewer.