Changeset 42411
- Timestamp:
- 12/18/2017 02:13:58 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/color-picker.js
r42403 r42411 11 11 12 12 /** 13 * @summary Creates a jQuery UI color picker.14 *15 13 * Creates a jQuery UI color picker that is used in the theme customizer. 16 14 * … … 32 30 }, 33 31 /** 34 * @summaryCreates a color picker that only allows you to adjust the hue.32 * Creates a color picker that only allows you to adjust the hue. 35 33 * 36 34 * @since 3.5.0 … … 57 55 color: color, 58 56 /** 59 * @summaryHandles the onChange event if one has been defined in the options.57 * Handles the onChange event if one has been defined in the options. 60 58 * 61 59 * @ignore … … 76 74 }, 77 75 /** 78 * @summary Creates the color picker.79 *80 76 * Creates the color picker, sets default values, css classes and wraps it all in HTML. 81 77 * … … 177 173 palettes: self.options.palettes, 178 174 /** 179 * @summary Handles the onChange event if one has been defined in the options.180 *181 175 * Handles the onChange event if one has been defined in the options and additionally 182 176 * sets the background color for the toggler element. … … 209 203 }, 210 204 /** 211 * @summaryBinds event listeners to the color picker.205 * Binds event listeners to the color picker. 212 206 * 213 207 * @since 3.5.0 … … 221 215 222 216 /** 223 * @summaryPrevent any clicks inside this widget from leaking to the top and closing it.217 * Prevent any clicks inside this widget from leaking to the top and closing it. 224 218 * 225 219 * @since 3.5.0 … … 234 228 235 229 /** 236 * @summaryOpen or close the color picker depending on the class.230 * Open or close the color picker depending on the class. 237 231 * 238 232 * @since 3.5 … … 247 241 248 242 /** 249 * @summary Checks if value is empty when changing the color in the color picker.250 *251 243 * Checks if value is empty when changing the color in the color picker. 252 244 * If so, the background color is cleared. … … 272 264 273 265 /** 274 * @summary Enables the user to clear or revert the color in the color picker.275 *276 266 * Enables the user to either clear the color in the color picker or revert back to the default color. 277 267 * … … 296 286 }, 297 287 /** 298 * @summaryOpens the color picker dialog.288 * Opens the color picker dialog. 299 289 * 300 290 * @since 3.5.0 … … 312 302 }, 313 303 /** 314 * @summaryCloses the color picker dialog.304 * Closes the color picker dialog. 315 305 * 316 306 * @since 3.5.0 … … 328 318 }, 329 319 /** 330 * @summary Returns iris object or sets new color.331 *332 320 * Returns the iris object if no new color is provided. If a new color is provided, it sets the new color. 333 321 * … … 345 333 }, 346 334 /** 347 * @summary Returns iris object or sets new default color.348 *349 335 * Returns the iris object if no new default color is provided. 350 336 * If a new default color is provided, it sets the new default color. -
trunk/src/wp-admin/js/comment.js
r40913 r42411 2 2 3 3 /** 4 * @summaryBinds to the document ready event.4 * Binds to the document ready event. 5 5 * 6 6 * @since 2.5.0 … … 19 19 20 20 /** 21 * @summaryAdds event that opens the time stamp form if the form is hidden.21 * Adds event that opens the time stamp form if the form is hidden. 22 22 * 23 23 * @listens $edittimestamp:click … … 38 38 39 39 /** 40 * @summaryResets the time stamp values when the cancel button is clicked.40 * Resets the time stamp values when the cancel button is clicked. 41 41 * 42 42 * @listens .cancel-timestamp:click … … 60 60 61 61 /** 62 * @summarySets the time stamp values when the ok button is clicked.62 * Sets the time stamp values when the ok button is clicked. 63 63 * 64 64 * @listens .save-timestamp:click -
trunk/src/wp-admin/js/common.js
r42357 r42411 3 3 4 4 /** 5 * @summaryAdds common WordPress functionality to the window.5 * Adds common WordPress functionality to the window. 6 6 * 7 7 * @param {jQuery} $ jQuery object. … … 15 15 16 16 /** 17 * @summaryRemoved in 3.3.0, needed for back-compatibility.17 * Removed in 3.3.0, needed for back-compatibility. 18 18 * 19 19 * @since 2.7.0 … … 32 32 33 33 /** 34 * @summaryInitializes the column toggles in the screen options.34 * Initializes the column toggles in the screen options. 35 35 * 36 36 * Binds an onClick event to the checkboxes to show or hide the table columns … … 55 55 56 56 /** 57 * @summarySaves the toggled state for the columns.57 * Saves the toggled state for the columns. 58 58 * 59 59 * Saves whether the columns should be shown or hidden on a page. … … 74 74 75 75 /** 76 * @summaryMakes a column visible and adjusts the column span for the table.76 * Makes a column visible and adjusts the column span for the table. 77 77 * 78 78 * @since 3.0.0 … … 87 87 88 88 /** 89 * @summaryHides a column and adjusts the column span for the table.89 * Hides a column and adjusts the column span for the table. 90 90 * 91 91 * @since 3.0.0 … … 100 100 101 101 /** 102 * @summary Getall hidden columns.102 * Gets all hidden columns. 103 103 * 104 104 * @since 3.0.0 … … 113 113 114 114 /** 115 * @summaryGets the checked column toggles from the screen options.115 * Gets the checked column toggles from the screen options. 116 116 * 117 117 * @since 3.0.0 … … 129 129 130 130 /** 131 * @summaryAdjusts the column span for the table.131 * Adjusts the column span for the table. 132 132 * 133 133 * @since 3.1.0 … … 147 147 148 148 /** 149 * @summaryValidates that the required form fields are not empty.149 * Validates that the required form fields are not empty. 150 150 * 151 151 * @since 2.9.0 … … 167 167 // stub for doing better warnings 168 168 /** 169 * @summaryShows message pop-up notice or confirmation message.169 * Shows message pop-up notice or confirmation message. 170 170 * 171 171 * @since 2.7.0 … … 178 178 179 179 /** 180 * @summaryShows a delete confirmation pop-up message.180 * Shows a delete confirmation pop-up message. 181 181 * 182 182 * @since 2.7.0 … … 194 194 195 195 /** 196 * @summaryShows an alert message.196 * Shows an alert message. 197 197 * 198 198 * @since 2.7.0 … … 206 206 207 207 /** 208 * @summaryRepresents the functions for the meta screen options panel.208 * Represents the functions for the meta screen options panel. 209 209 * 210 210 * @since 3.2.0 … … 222 222 223 223 /** 224 * @summaryInitializes the screen meta options panel.224 * Initializes the screen meta options panel. 225 225 * 226 226 * @since 3.2.0 … … 237 237 238 238 /** 239 * @summaryToggles the screen meta options panel.239 * Toggles the screen meta options panel. 240 240 * 241 241 * @since 3.2.0 … … 256 256 257 257 /** 258 * @summaryOpens the screen meta options panel.258 * Opens the screen meta options panel. 259 259 * 260 260 * @since 3.2.0 … … 272 272 273 273 /** 274 * @summarySets the focus to the meta options panel and adds the necessary CSS classes.274 * Sets the focus to the meta options panel and adds the necessary CSS classes. 275 275 * 276 276 * @since 3.2.0 … … 287 287 288 288 /** 289 * @summaryCloses the screen meta options panel.289 * Closes the screen meta options panel. 290 290 * 291 291 * @since 3.2.0 … … 298 298 close: function( panel, button ) { 299 299 /** 300 * @summaryHides the screen meta options panel.300 * Hides the screen meta options panel. 301 301 * 302 302 * @since 3.2.0 … … 315 315 316 316 /** 317 * @summaryInitializes the help tabs in the help panel.317 * Initializes the help tabs in the help panel. 318 318 * 319 319 * @param {Event} e The event object. … … 496 496 497 497 /** 498 * @summaryMakes the fly-out submenu header clickable, when the menu is folded.498 * Makes the fly-out submenu header clickable, when the menu is folded. 499 499 * 500 500 * @param {Event} e The event object. … … 507 507 508 508 /** 509 * @summaryCollapses the admin menu.509 * Collapses the admin menu. 510 510 * 511 511 * @returns {void} … … 544 544 545 545 /** 546 * @summaryHandles the `aria-haspopup` attribute on the current menu item when it has a submenu.546 * Handles the `aria-haspopup` attribute on the current menu item when it has a submenu. 547 547 * 548 548 * @since 4.4.0 … … 565 565 566 566 /** 567 * @summaryEnsures an admin submenu is within the visual viewport.567 * Ensures an admin submenu is within the visual viewport. 568 568 * 569 569 * @since 4.1.0 … … 606 606 607 607 /** 608 * @summaryCloses any open submenus when touch/click is not on the menu.608 * Closes any open submenus when touch/click is not on the menu. 609 609 * 610 610 * @param {Event} e The event object. … … 623 623 624 624 /** 625 * @summaryHandles the opening or closing the submenu based on the mobile click|touch event.625 * Handles the opening or closing the submenu based on the mobile click|touch event. 626 626 * 627 627 * @param {Event} event The event object. … … 652 652 653 653 /** 654 * @summaryOpens the submenu when hovered over the menu item for desktops.654 * Opens the submenu when hovered over the menu item for desktops. 655 655 * 656 656 * @returns {void} … … 676 676 677 677 /** 678 * @summaryCloses the submenu when no longer hovering the menu item.678 * Closes the submenu when no longer hovering the menu item. 679 679 * 680 680 * @returns {void} … … 694 694 695 695 /** 696 * @summaryOpens the submenu on when focused on the menu item.696 * Opens the submenu on when focused on the menu item. 697 697 * 698 698 * @param {Event} event The event object. … … 709 709 710 710 /** 711 * @summaryCloses the submenu on blur from the menu item.711 * Closes the submenu on blur from the menu item. 712 712 * 713 713 * @param {Event} event The event object. … … 723 723 724 724 /** 725 * @summaryAdjusts the size for the submenu.725 * Adjusts the size for the submenu. 726 726 * 727 727 * @returns {void} … … 744 744 745 745 /** 746 * @summary Makenotices dismissible.746 * Makes notices dismissible. 747 747 * 748 748 * @since 4.4.0 … … 777 777 778 778 /** 779 * @summaryChecks a checkbox.779 * Checks a checkbox. 780 780 * 781 781 * This event needs to be delegated. Ticket #37973. … … 808 808 809 809 /** 810 * @summaryDetermines if all checkboxes are checked.810 * Determines if all checkboxes are checked. 811 811 * 812 812 * @returns {boolean} Returns true if there are no unchecked checkboxes. … … 820 820 821 821 /** 822 * @summaryControls all the toggles on bulk toggle change.822 * Controls all the toggles on bulk toggle change. 823 823 * 824 824 * When the bulk checkbox is changed, all the checkboxes in the tables are changed accordingly. … … 840 840 .children().children('.check-column').find(':checkbox') 841 841 /** 842 * @summaryUpdates the checked state on the checkbox in the table.842 * Updates the checked state on the checkbox in the table. 843 843 * 844 844 * @returns {boolean} True checks the checkbox, False unchecks the checkbox. … … 862 862 863 863 /** 864 * @summarySyncs the bulk checkboxes on the top and bottom of the table.864 * Syncs the bulk checkboxes on the top and bottom of the table. 865 865 * 866 866 * @returns {boolean} True checks the checkbox, False unchecks the checkbox. … … 878 878 879 879 /** 880 * @summaryShows row actions on focus of its parent container element or any other elements contained within.880 * Shows row actions on focus of its parent container element or any other elements contained within. 881 881 * 882 882 * @returns {void} … … 911 911 912 912 /** 913 * @summaryHandles tab keypresses in theme and plugin editor textareas.913 * Handles tab keypresses in theme and plugin editor textareas. 914 914 * 915 915 * @param {Event} e The event object. … … 965 965 966 966 /** 967 * @summaryHandles pagination variable when filtering the list table.967 * Handles pagination variable when filtering the list table. 968 968 * 969 969 * Set the pagination argument to the first page when the post-filter form is submitted. … … 987 987 988 988 /** 989 * @summaryResets the bulk actions when the search button is clicked.989 * Resets the bulk actions when the search button is clicked. 990 990 * 991 991 * @returns {void} … … 996 996 997 997 /** 998 * @summaryScrolls into view when focus.scroll-into-view is triggered.998 * Scrolls into view when focus.scroll-into-view is triggered. 999 999 * 1000 1000 * @param {Event} e The event object. … … 1008 1008 1009 1009 /** 1010 * @summaryDisables the submit upload buttons when no data is entered.1010 * Disables the submit upload buttons when no data is entered. 1011 1011 * 1012 1012 * @returns {void} … … 1023 1023 1024 1024 /** 1025 * @summaryDetermines if any data is entered in any file upload input.1025 * Determines if any data is entered in any file upload input. 1026 1026 * 1027 1027 * @since 3.5.0 … … 1043 1043 1044 1044 /** 1045 * @summaryPins the menu while distraction-free writing is enabled.1045 * Pins the menu while distraction-free writing is enabled. 1046 1046 * 1047 1047 * @param {Event} event Event data. … … 1188 1188 1189 1189 /** 1190 * @summaryDetermines the height of certain elements.1190 * Determines the height of certain elements. 1191 1191 * 1192 1192 * @since 4.1.0 … … 1204 1204 1205 1205 /** 1206 * @summaryUnpins the menu.1206 * Unpins the menu. 1207 1207 * 1208 1208 * @since 4.1.0 … … 1224 1224 1225 1225 /** 1226 * @summaryPins and unpins the menu when applicable.1226 * Pins and unpins the menu when applicable. 1227 1227 * 1228 1228 * @since 4.1.0 … … 1253 1253 1254 1254 /** 1255 * @summary Changes properties of metaboxes and body.1256 *1257 1255 * Changes the sortables and responsiveness of metaboxes. 1258 1256 * … … 1264 1262 1265 1263 /** 1266 * @summaryInitializes the wpResponsive object.1264 * Initializes the wpResponsive object. 1267 1265 * 1268 1266 * @since 3.8.0 … … 1322 1320 1323 1321 /** 1324 * @summaryChanges properties of body and admin menu.1322 * Changes properties of body and admin menu. 1325 1323 * 1326 1324 * Pins and unpins the menu and adds the auto-fold class to the body. … … 1343 1341 1344 1342 /** 1345 * @summaryChanges properties of admin menu and enables metabox sortables.1343 * Changes properties of admin menu and enables metabox sortables. 1346 1344 * 1347 1345 * Pin and unpin the menu. … … 1359 1357 1360 1358 /** 1361 * @summarySets the responsiveness and enables the overlay based on the viewport width.1359 * Sets the responsiveness and enables the overlay based on the viewport width. 1362 1360 * 1363 1361 * @since 3.8.0 … … 1393 1391 1394 1392 /** 1395 * @summaryInserts a responsive overlay and toggles the window.1393 * Inserts a responsive overlay and toggles the window. 1396 1394 * 1397 1395 * @since 3.8.0 … … 1416 1414 1417 1415 /** 1418 * @summaryDisables the responsive overlay and removes the overlay.1416 * Disables the responsive overlay and removes the overlay. 1419 1417 * 1420 1418 * @since 3.8.0 … … 1428 1426 1429 1427 /** 1430 * @summaryDisables sortables.1428 * Disables sortables. 1431 1429 * 1432 1430 * @since 3.8.0 … … 1443 1441 1444 1442 /** 1445 * @summaryEnables sortables.1443 * Enables sortables. 1446 1444 * 1447 1445 * @since 3.8.0 … … 1459 1457 1460 1458 /** 1461 * @summaryAdd an ARIA role `button` to elements that behave like UI controls when JavaScript is on.1459 * Add an ARIA role `button` to elements that behave like UI controls when JavaScript is on. 1462 1460 * 1463 1461 * @since 4.5.0 … … 1474 1472 1475 1473 /** 1476 * @summaryGet the viewport width.1474 * Get the viewport width. 1477 1475 * 1478 1476 * @since 4.7.0 … … 1493 1491 1494 1492 /** 1495 * @summarySets the admin menu collapsed/expanded state.1493 * Sets the admin menu collapsed/expanded state. 1496 1494 * 1497 1495 * Sets the global variable `menuState` and triggers a custom event passing … … 1520 1518 1521 1519 /** 1522 * @summarySets ARIA attributes on the collapse/expand menu button.1520 * Sets ARIA attributes on the collapse/expand menu button. 1523 1521 * 1524 1522 * When the admin menu is open or folded, updates the `aria-expanded` and … … 1583 1581 1584 1582 /** 1585 * @summaryTriggers the WP window-resize event.1583 * Triggers the WP window-resize event. 1586 1584 * 1587 1585 * @since 3.8.0 … … 1594 1592 1595 1593 /** 1596 * @summaryFires the trigger event again after 200 ms.1594 * Fires the trigger event again after 200 ms. 1597 1595 * 1598 1596 * @since 3.8.0 -
trunk/src/wp-admin/js/custom-background.js
r40914 r42411 2 2 3 3 /** 4 * @summaryRegisters all events for customizing the background.4 * Registers all events for customizing the background. 5 5 * 6 6 * @since 3.0.0 … … 14 14 15 15 /** 16 * @summaryInstantiates the WordPress color picker and binds the change and clear events.16 * Instantiates the WordPress color picker and binds the change and clear events. 17 17 * 18 18 * @since 3.5.0 … … 30 30 31 31 /** 32 * @summaryAlters the background size CSS property whenever the background size input has changed.32 * Alters the background size CSS property whenever the background size input has changed. 33 33 * 34 34 * @since 4.7.0 … … 41 41 42 42 /** 43 * @summaryAlters the background position CSS property whenever the background position input has changed.43 * Alters the background position CSS property whenever the background position input has changed. 44 44 * 45 45 * @since 4.7.0 … … 52 52 53 53 /** 54 * @summaryAlters the background repeat CSS property whenever the background repeat input has changed.54 * Alters the background repeat CSS property whenever the background repeat input has changed. 55 55 * 56 56 * @since 3.0.0 … … 63 63 64 64 /** 65 * @summaryAlters the background attachment CSS property whenever the background attachment input has changed.65 * Alters the background attachment CSS property whenever the background attachment input has changed. 66 66 * 67 67 * @since 4.7.0 … … 74 74 75 75 /** 76 * @summaryBinds the event for opening the WP Media dialog.76 * Binds the event for opening the WP Media dialog. 77 77 * 78 78 * @since 3.5.0 … … 114 114 115 115 /** 116 * @summaryWhen an image is selected, run a callback.116 * When an image is selected, run a callback. 117 117 * 118 118 * @since 3.5.0 -
trunk/src/wp-admin/js/custom-header.js
r42385 r42411 2 2 3 3 /** 4 * @summaryInitializes the custom header selection page.4 * Initializes the custom header selection page. 5 5 * 6 6 * @since 3.5.0 … … 28 28 29 29 /** 30 * @summary Opens the 'choose from library' frame and creates it if it doesn't 31 * exist. 30 * Opens the 'choose from library' frame and creates it if it doesn't exist. 32 31 * 33 32 * @since 3.5.0 … … 67 66 68 67 /** 69 * @summaryUpdates the window location to include the selected attachment.68 * Updates the window location to include the selected attachment. 70 69 * 71 70 * @since 3.5.0 -
trunk/src/wp-admin/js/editor-expand.js
r41310 r42411 8 8 9 9 /** 10 * @summaryHandles the resizing of the editor.10 * Handles the resizing of the editor. 11 11 * 12 12 * @since 4.0.0 … … 61 61 62 62 /** 63 * @summary Resizes textarea based on scroll height and width. 64 * 65 * Resizes textarea based on scroll height and width. Doesn't shrink the 66 * editor size below the 300px auto resize minimum height. 63 * Resizes textarea based on scroll height and width. 64 * 65 * Doesn't shrink the editor size below the 300px auto resize minimum height. 67 66 * 68 67 * @since 4.6.1 … … 91 90 92 91 /** 93 * @summaryResizes the text editor depending on the old text length.92 * Resizes the text editor depending on the old text length. 94 93 * 95 94 * If there is an mceEditor and it is hidden, it resizes the editor depending … … 124 123 125 124 /** 126 * @summaryGets the height and widths of elements.125 * Gets the height and widths of elements. 127 126 * 128 127 * Gets the heights of the window, the adminbar, the tools, the menu, … … 159 158 // We need to wait for TinyMCE to initialize. 160 159 /** 161 * @summary Binds all necessary functions for editor expand tothe editor162 * when the editoris initialized.160 * Binds all necessary functions for editor expand to the editor when the editor 161 * is initialized. 163 162 * 164 163 * @since 4.0.0 … … 173 172 var VK = window.tinymce.util.VK, 174 173 /** 175 * @summaryHides any float panel with a hover state. Additionally hides tooltips.174 * Hides any float panel with a hover state. Additionally hides tooltips. 176 175 * 177 176 * @returns {void} … … 200 199 201 200 /** 202 * @summaryGets the offset of the editor.201 * Gets the offset of the editor. 203 202 * 204 203 * @returns {Number|Boolean} Returns the offset of the editor … … 233 232 234 233 /** 235 * @summaryFilters the special keys that should not be used for scrolling.234 * Filters the special keys that should not be used for scrolling. 236 235 * 237 236 * @since 4.0.0 … … 256 255 257 256 /** 258 * @summaryMakes sure the cursor is always visible in the editor.257 * Makes sure the cursor is always visible in the editor. 259 258 * 260 259 * Makes sure the cursor is kept between the toolbars of the editor and scrolls … … 323 322 324 323 /** 325 * @summaryIf the editor is fullscreen, calls adjust.324 * If the editor is fullscreen, calls adjust. 326 325 * 327 326 * @since 4.1.0 … … 339 338 340 339 /** 341 * @summaryShows the editor when scrolled.340 * Shows the editor when scrolled. 342 341 * 343 342 * Binds the hideFloatPanels function on the window scroll.mce-float-panels event. … … 358 357 359 358 /** 360 * @summaryResizes the editor.359 * Resizes the editor. 361 360 * 362 361 * Removes all functions from the window scroll.mce-float-panels event. … … 385 384 386 385 /** 387 * @summaryToggles advanced states.386 * Toggles advanced states. 388 387 * 389 388 * @since 4.1.0 … … 396 395 397 396 /** 398 * @summaryBinds events of the editor and window.397 * Binds events of the editor and window. 399 398 * 400 399 * @since 4.0.0 … … 421 420 422 421 /** 423 * @summaryUnbinds the events of the editor and window.422 * Unbinds the events of the editor and window. 424 423 * 425 424 * @since 4.0.0 … … 448 447 449 448 /** 450 * @summary Adjusts the toolbars heights and positions. 451 * 452 * Adjusts the toolbar heights and positions based on the scroll position on the page, 453 * the active editor mode and the heights of the editor, admin bar and side bar. 449 * Adjusts the toolbars heights and positions. 450 * 451 * Adjusts the toolbars heights and positions based on the scroll position on 452 * the page, the active editor mode and the heights of the editor, admin bar and 453 * side bar. 454 454 * 455 455 * @since 4.0.0 … … 765 765 766 766 /** 767 * @summaryResizes the editor and adjusts the toolbars.767 * Resizes the editor and adjusts the toolbars. 768 768 * 769 769 * @since 4.0.0 … … 777 777 778 778 /** 779 * @summaryRuns the passed function with 500ms intervals.779 * Runs the passed function with 500ms intervals. 780 780 * 781 781 * @since 4.0.0 … … 792 792 793 793 /** 794 * @summaryRuns adjust after 100ms.794 * Runs adjust after 100ms. 795 795 * 796 796 * @since 4.0.0 … … 804 804 805 805 /** 806 * @summaryBinds editor expand events on elements.806 * Binds editor expand events on elements. 807 807 * 808 808 * @since 4.0.0 … … 874 874 875 875 /** 876 * @summaryUnbinds editor expand events.876 * Unbinds editor expand events. 877 877 * 878 878 * @since 4.0.0 … … 968 968 969 969 /** 970 * @summaryHandles the distraction free writing of TinyMCE.970 * Handles the distraction free writing of TinyMCE. 971 971 * 972 972 * @since 4.1.0 … … 1018 1018 1019 1019 /** 1020 * @summaryRecalculates the bottom and right position of the editor in the DOM.1020 * Recalculates the bottom and right position of the editor in the DOM. 1021 1021 * 1022 1022 * @since 4.1.0 … … 1031 1031 1032 1032 /** 1033 * @summaryActivates the distraction free writing mode.1033 * Activates the distraction free writing mode. 1034 1034 * 1035 1035 * @since 4.1.0 … … 1047 1047 1048 1048 /** 1049 * @summaryDeactivates the distraction free writing mode.1049 * Deactivates the distraction free writing mode. 1050 1050 * 1051 1051 * @since 4.1.0 … … 1065 1065 1066 1066 /** 1067 * @summaryReturns _isActive.1067 * Returns _isActive. 1068 1068 * 1069 1069 * @since 4.1.0 … … 1076 1076 1077 1077 /** 1078 * @summaryBinds events on the editor for distraction free writing.1078 * Binds events on the editor for distraction free writing. 1079 1079 * 1080 1080 * @since 4.1.0 … … 1099 1099 1100 1100 /** 1101 * @summaryUnbinds events on the editor for distraction free writing.1101 * Unbinds events on the editor for distraction free writing. 1102 1102 * 1103 1103 * @since 4.1.0 … … 1122 1122 1123 1123 /** 1124 * @summaryBinds or unbinds the editor expand events.1124 * Binds or unbinds the editor expand events. 1125 1125 * 1126 1126 * @since 4.1.0 … … 1137 1137 1138 1138 /** 1139 * @summaryReturns the value of _isOn.1139 * Returns the value of _isOn. 1140 1140 * 1141 1141 * @since 4.1.0 … … 1148 1148 1149 1149 /** 1150 * @summaryFades out all elements except for the editor.1150 * Fades out all elements except for the editor. 1151 1151 * 1152 1152 * The fading is done based on key presses and mouse movements. … … 1291 1291 1292 1292 /** 1293 * @summaryFades all elements back in.1293 * Fades all elements back in. 1294 1294 * 1295 1295 * @since 4.1.0 … … 1339 1339 1340 1340 /** 1341 * @summaryFades in if the focused element based on it position.1341 * Fades in if the focused element based on it position. 1342 1342 * 1343 1343 * @since 4.1.0 … … 1361 1361 1362 1362 /** 1363 * @summaryFades out the admin bar based on focus on the admin bar.1363 * Fades out the admin bar based on focus on the admin bar. 1364 1364 * 1365 1365 * @since 4.1.0 … … 1382 1382 1383 1383 /** 1384 * @summaryFades in the admin bar.1384 * Fades in the admin bar. 1385 1385 * 1386 1386 * @since 4.1.0 … … 1397 1397 1398 1398 /** 1399 * @summaryFades out the edit slug box.1399 * Fades out the edit slug box. 1400 1400 * 1401 1401 * @since 4.1.0 … … 1414 1414 1415 1415 /** 1416 * @summaryFades in the edit slug box.1416 * Fades in the edit slug box. 1417 1417 * 1418 1418 * @since 4.1.0 … … 1431 1431 1432 1432 /** 1433 * @summaryTriggers the toggle on Alt + Shift + W.1433 * Triggers the toggle on Alt + Shift + W. 1434 1434 * 1435 1435 * Keycode 87 = w. … … 1452 1452 1453 1453 /** 1454 * @summaryAdds the distraction free writing button when setting up TinyMCE.1454 * Adds the distraction free writing button when setting up TinyMCE. 1455 1455 * 1456 1456 * @since 4.1.0 … … 1493 1493 1494 1494 /** 1495 * @summaryBinds and unbinds events on the editor.1495 * Binds and unbinds events on the editor. 1496 1496 * 1497 1497 * @since 4.1.0 … … 1550 1550 1551 1551 /** 1552 * @summaryBinds events on quicktags init.1552 * Binds events on quicktags init. 1553 1553 * 1554 1554 * @since 4.1.0 -
trunk/src/wp-admin/js/editor.js
r42403 r42411 5 5 6 6 /** 7 * @summaryUtility functions for the editor.7 * Utility functions for the editor. 8 8 * 9 9 * @since 2.5.0 … … 19 19 20 20 /** 21 * @summaryHandles onclick events for the Visual/Text tabs.21 * Handles onclick events for the Visual/Text tabs. 22 22 * 23 23 * @since 4.3.0 … … 39 39 40 40 /** 41 * @summaryReturns the height of the editor toolbar(s) in px.41 * Returns the height of the editor toolbar(s) in px. 42 42 * 43 43 * @since 3.9.0 … … 59 59 60 60 /** 61 * @summarySwitches the editor between Visual and Text mode.61 * Switches the editor between Visual and Text mode. 62 62 * 63 63 * @since 2.5.0 … … 185 185 186 186 /** 187 * @summaryChecks if a cursor is inside an HTML tag.187 * Checks if a cursor is inside an HTML tag. 188 188 * 189 189 * In order to prevent breaking HTML tags when selecting text, the cursor … … 228 228 229 229 /** 230 * @summary Checkif the cursor is inside a shortcode230 * Checks if the cursor is inside a shortcode 231 231 * 232 232 * If the cursor is inside a shortcode wrapping tag, e.g. `[caption]` it's better to … … 282 282 283 283 /** 284 * @summary Checkif a shortcode has Live Preview enabled for it.284 * Checks if a shortcode has Live Preview enabled for it. 285 285 * 286 286 * Previewable shortcodes here refers to shortcodes that have Live Preview enabled. … … 306 306 307 307 /** 308 * @summary Getall shortcodes and their positions in the content308 * Gets all shortcodes and their positions in the content 309 309 * 310 310 * This function returns all the shortcodes that could be found in the textarea content … … 415 415 416 416 /** 417 * @summary Getadjusted selection cursor positions according to HTML tags/shortcodes417 * Gets adjusted selection cursor positions according to HTML tags/shortcodes 418 418 * 419 419 * Shortcodes and HTML codes are a bit of a special case when selecting, since they may render … … 498 498 499 499 /** 500 * @summaryAdds text selection markers in the editor textarea.500 * Adds text selection markers in the editor textarea. 501 501 * 502 502 * Adds selection markers in the content of the editor `textarea`. … … 548 548 549 549 /** 550 * @summary Focus the selection markers in Visual mode.550 * Focuses the selection markers in Visual mode. 551 551 * 552 552 * The method checks for existing selection markers inside the editor DOM (Visual mode) … … 587 587 588 588 /** 589 * @summary Removeselection marker and the parent node if it is an empty paragraph.589 * Removes selection marker and the parent node if it is an empty paragraph. 590 590 * 591 591 * By default TinyMCE wraps loose inline tags in a `<p>`. … … 606 606 607 607 /** 608 * @summaryScrolls the content to place the selected element in the center of the screen.608 * Scrolls the content to place the selected element in the center of the screen. 609 609 * 610 610 * Takes an element, that is usually the selection start element, selected in … … 681 681 682 682 /** 683 * @summaryFinds the current selection position in the Visual editor.683 * Finds the current selection position in the Visual editor. 684 684 * 685 685 * Find the current selection in the Visual editor by inserting marker elements at the start … … 848 848 849 849 /** 850 * @summarySelects text in the TinyMCE `textarea`.850 * Selects text in the TinyMCE `textarea`. 851 851 * 852 852 * Selects the text in TinyMCE's textarea that's between `selection.start` and `selection.end`. … … 889 889 890 890 /** 891 * @summaryReplaces <p> tags with two line breaks. "Opposite" of wpautop().891 * Replaces <p> tags with two line breaks. "Opposite" of wpautop(). 892 892 * 893 893 * Replaces <p> tags with two line breaks except where the <p> has attributes. … … 1028 1028 1029 1029 /** 1030 * @summaryReplaces two line breaks with a paragraph tag and one line break with a <br>.1030 * Replaces two line breaks with a paragraph tag and one line break with a <br>. 1031 1031 * 1032 1032 * Similar to `wpautop()` in formatting.php. … … 1157 1157 1158 1158 /** 1159 * @summaryFires custom jQuery events `beforePreWpautop` and `afterPreWpautop` when jQuery is available.1159 * Fires custom jQuery events `beforePreWpautop` and `afterPreWpautop` when jQuery is available. 1160 1160 * 1161 1161 * @since 2.9.0 … … 1183 1183 1184 1184 /** 1185 * @summaryFires custom jQuery events `beforeWpautop` and `afterWpautop` when jQuery is available.1185 * Fires custom jQuery events `beforeWpautop` and `afterWpautop` when jQuery is available. 1186 1186 * 1187 1187 * @since 2.9.0 -
trunk/src/wp-admin/js/image-edit.js
r42404 r42411 1 1 /* global imageEditL10n, ajaxurl, confirm */ 2 2 /** 3 * @summaryThe functions necessary for editing images.3 * The functions necessary for editing images. 4 4 * 5 * @since 5 * @since 2.9.0 6 6 */ 7 7 … … 45 45 46 46 /** 47 * @summaryConverts a value to an integer.47 * Converts a value to an integer. 48 48 * 49 49 * @memberof imageEdit … … 63 63 64 64 /** 65 * @summary Adds the disabled attribute and class to a single form element 66 * or a field set. 65 * Adds the disabled attribute and class to a single form element or a field set. 67 66 * 68 67 * @memberof imageEdit … … 93 92 94 93 /** 95 * @summaryInitializes the image editor.94 * Initializes the image editor. 96 95 * 97 96 * @memberof imageEdit … … 136 135 137 136 /** 138 * @summaryToggles the wait/load icon in the editor.137 * Toggles the wait/load icon in the editor. 139 138 * 140 139 * @memberof imageEdit … … 157 156 158 157 /** 159 * @summaryShows or hides the image edit help box.158 * Shows or hides the image edit help box. 160 159 * 161 160 * @memberof imageEdit … … 176 175 177 176 /** 178 * @summaryGets the value from the image edit target.177 * Gets the value from the image edit target. 179 178 * 180 179 * The image edit target contains the image sizes where the (possible) changes … … 194 193 195 194 /** 196 * @summaryRecalculates the height or width and keeps the original aspect ratio.195 * Recalculates the height or width and keeps the original aspect ratio. 197 196 * 198 197 * If the original image size is exceeded a red exclamation mark is shown. … … 232 231 233 232 /** 234 * @summaryGets the selected aspect ratio.233 * Gets the selected aspect ratio. 235 234 * 236 235 * @memberof imageEdit … … 258 257 259 258 /** 260 * @summary Removes the last action from the image edit history259 * Removes the last action from the image edit history. 261 260 * The history consist of (edit) actions performed on the image. 262 261 * … … 322 321 }, 323 322 /** 324 * @summaryBinds the necessary events to the image.323 * Binds the necessary events to the image. 325 324 * 326 325 * When the image source is reloaded the image will be reloaded. … … 397 396 }, 398 397 /** 399 * @summaryPerforms an image edit action.398 * Performs an image edit action. 400 399 * 401 400 * @memberof imageEdit … … 464 463 465 464 /** 466 * @summaryStores the changes that are made to the image.465 * Stores the changes that are made to the image. 467 466 * 468 467 * @memberof imageEdit … … 529 528 530 529 /** 531 * @summaryCreates the image edit window.530 * Creates the image edit window. 532 531 * 533 532 * @memberof imageEdit … … 586 585 587 586 /** 588 * @summaryInitializes the cropping tool and sets a default cropping selection.587 * Initializes the cropping tool and sets a default cropping selection. 589 588 * 590 589 * @memberof imageEdit … … 612 611 613 612 /** 614 * @summaryInitializes the cropping tool.613 * Initializes the cropping tool. 615 614 * 616 615 * @memberof imageEdit … … 638 637 639 638 /** 640 * @summarySets the CSS styles and binds events for locking the aspect ratio.639 * Sets the CSS styles and binds events for locking the aspect ratio. 641 640 * 642 641 * @ignore … … 651 650 .nextAll( '.imgareaselect-outer' ).css( 'position', 'absolute' ); 652 651 /** 653 * @summaryBinds mouse down event to the cropping container.652 * Binds mouse down event to the cropping container. 654 653 * 655 654 * @returns {void} … … 671 670 672 671 /** 673 * @summaryEvent triggered when starting a selection.672 * Event triggered when starting a selection. 674 673 * 675 674 * @ignore … … 681 680 }, 682 681 /** 683 * @summaryEvent triggered when the selection is ended.682 * Event triggered when the selection is ended. 684 683 * 685 684 * @ignore … … 695 694 696 695 /** 697 * @summaryEvent triggered when the selection changes.696 * Event triggered when the selection changes. 698 697 * 699 698 * @ignore … … 713 712 714 713 /** 715 * @summaryStores the current crop selection.714 * Stores the current crop selection. 716 715 * 717 716 * @memberof imageEdit … … 744 743 745 744 /** 746 * @summaryCloses the image editor.745 * Closes the image editor. 747 746 * 748 747 * @memberof imageEdit … … 785 784 786 785 /** 787 * @summaryChecks if the image edit history is saved.786 * Checks if the image edit history is saved. 788 787 * 789 788 * @memberof imageEdit … … 809 808 810 809 /** 811 * @summaryAdds an image edit action to the history.810 * Adds an image edit action to the history. 812 811 * 813 812 * @memberof imageEdit … … 842 841 843 842 /** 844 * @summaryRotates the image.843 * Rotates the image. 845 844 * 846 845 * @memberof imageEdit … … 863 862 864 863 /** 865 * @summaryFlips the image.864 * Flips the image. 866 865 * 867 866 * @memberof imageEdit … … 884 883 885 884 /** 886 * @summaryCrops the image.885 * Crops the image. 887 886 * 888 887 * @memberof imageEdit … … 913 912 914 913 /** 915 * @summaryUndoes an image edit action.914 * Undoes an image edit action. 916 915 * 917 916 * @memberof imageEdit … … 976 975 977 976 /** 978 * @summarySets the selection for the height and width in pixels.977 * Sets the selection for the height and width in pixels. 979 978 * 980 979 * @memberof imageEdit -
trunk/src/wp-admin/js/inline-edit-post.js
r42403 r42411 27 27 28 28 /** 29 * @summaryInitializes the inline and bulk post editor.29 * Initializes the inline and bulk post editor. 30 30 * 31 31 * Binds event handlers to the escape key to close the inline editor … … 46 46 47 47 /** 48 * @summary Bindescape key to revert the changes and close the quick editor.48 * Binds the escape key to revert the changes and close the quick editor. 49 49 * 50 50 * @returns {boolean} The result of revert. … … 58 58 59 59 /** 60 * @summary Bindescape key to revert the changes and close the bulk editor.60 * Binds the escape key to revert the changes and close the bulk editor. 61 61 * 62 62 * @returns {boolean} The result of revert. … … 70 70 71 71 /** 72 * @summary Revertchanges and close the quick editor if the cancel button is clicked.72 * Reverts changes and close the quick editor if the cancel button is clicked. 73 73 * 74 74 * @returns {boolean} The result of revert. … … 79 79 80 80 /** 81 * @summary Savechanges in the quick editor if the save(named: update) button is clicked.81 * Saves changes in the quick editor if the save(named: update) button is clicked. 82 82 * 83 83 * @returns {boolean} The result of save. … … 88 88 89 89 /** 90 * @summaryIf enter is pressed, and the target is not the cancel button, save the post.90 * If enter is pressed, and the target is not the cancel button, save the post. 91 91 * 92 92 * @returns {boolean} The result of save. … … 99 99 100 100 /** 101 * @summary Revertchanges and close the bulk editor if the cancel button is clicked.101 * Reverts changes and close the bulk editor if the cancel button is clicked. 102 102 * 103 103 * @returns {boolean} The result of revert. … … 108 108 109 109 /** 110 * @summaryDisables the password input field when the private post checkbox is checked.110 * Disables the password input field when the private post checkbox is checked. 111 111 */ 112 112 $('#inline-edit .inline-edit-private input[value="private"]').click( function(){ … … 120 120 121 121 /** 122 * @summary Bindclick event to the .editinline link which opens the quick editor.122 * Binds click event to the .editinline link which opens the quick editor. 123 123 */ 124 124 $('#the-list').on( 'click', 'a.editinline', function( e ) { … … 136 136 137 137 /** 138 * @summaryAdds onclick events to the apply buttons.138 * Adds onclick events to the apply buttons. 139 139 */ 140 140 $('#doaction, #doaction2').click(function(e){ … … 154 154 155 155 /** 156 * @summary Toggles the quick edit window. 157 * 158 * Hides the window when it's active and shows the window when inactive. 156 * Toggles the quick edit window, hiding it when it's active and showing it when 157 * inactive. 159 158 * 160 159 * @memberof inlineEditPost … … 169 168 170 169 /** 171 * @summaryCreates the bulk editor row to edit multiple posts at once.170 * Creates the bulk editor row to edit multiple posts at once. 172 171 * 173 172 * @memberof inlineEditPost … … 185 184 186 185 /** 187 * @summary Create a HTML div with the title and a delete link(cross-icon) for each selected post. 186 * Create a HTML div with the title and a link(delete-icon) for each selected 187 * post. 188 188 * 189 189 * Get the selected posts based on the checked checkboxes in the post table. 190 * Create a HTML div with the title and a link(delete-icon) for each selected post.191 190 */ 192 191 $( 'tbody th.check-column input[type="checkbox"]' ).each( function() { … … 209 208 $('#bulk-titles').html(te); 210 209 /** 211 * @summaryBinds on click events to the checkboxes before the posts in the table.210 * Binds on click events to the checkboxes before the posts in the table. 212 211 * 213 212 * @listens click … … 241 240 242 241 /** 243 * @summaryCreates a quick edit window for the post that has been clicked.242 * Creates a quick edit window for the post that has been clicked. 244 243 * 245 244 * @memberof inlineEditPost … … 284 283 285 284 /** 286 * @summaryReplaces the image for a Twemoji(Twitter emoji) with it's alternate text.285 * Replaces the image for a Twemoji(Twitter emoji) with it's alternate text. 287 286 * 288 287 * @returns Alternate text from the image. … … 304 303 305 304 /** 306 * @summaryCreates the select boxes for the categories.305 * Creates the select boxes for the categories. 307 306 */ 308 307 $('.post_category', rowData).each(function(){ … … 317 316 318 317 /** 319 * @summary Gets all the taxonomies for live auto-fill suggestions.320 * When typing the nameof a tag.318 * Gets all the taxonomies for live auto-fill suggestions when typing the name 319 * of a tag. 321 320 */ 322 321 $('.tags_input', rowData).each(function(){ … … 381 380 382 381 /** 383 * @summarySaves the changes made in the quick edit window to the post.382 * Saves the changes made in the quick edit window to the post. 384 383 * AJAX saving is only for Quick Edit and not for bulk edit. 385 384 * … … 447 446 448 447 /** 449 * @summaryHides and empties the Quick Edit and/or Bulk Edit windows.448 * Hides and empties the Quick Edit and/or Bulk Edit windows. 450 449 * 451 450 * @memberof inlineEditPost … … 488 487 489 488 /** 490 * @summary Gets the id for a the post that you want to quick edit from the row491 * in the quickedit table.489 * Gets the id for a the post that you want to quick edit from the row in the quick 490 * edit table. 492 491 * 493 492 * @memberof inlineEditPost -
trunk/src/wp-admin/js/inline-edit-tax.js
r41684 r42411 22 22 23 23 /** 24 * @summary Initializes the inline taxonomy editor. 25 * 26 * Adds event handlers to be able to quick edit. 24 * Initializes the inline taxonomy editor by adding event handlers to be able to 25 * quick edit. 27 26 * 28 27 * @since 2.7.0 … … 43 42 }); 44 43 45 /* 46 * @summaryCancels inline editing when pressing escape inside the inline editor.44 /** 45 * Cancels inline editing when pressing escape inside the inline editor. 47 46 * 48 47 * @param {Object} e The keyup event that has been triggered. … … 56 55 57 56 /** 58 * @summaryCancels inline editing when clicking the cancel button.57 * Cancels inline editing when clicking the cancel button. 59 58 */ 60 59 $( '.cancel', row ).click( function() { … … 63 62 64 63 /** 65 * @summarySaves the inline edits when clicking the save button.64 * Saves the inline edits when clicking the save button. 66 65 */ 67 66 $( '.save', row ).click( function() { … … 70 69 71 70 /** 72 * @summarySaves the inline edits when pressing enter inside the inline editor.71 * Saves the inline edits when pressing enter inside the inline editor. 73 72 */ 74 73 $( 'input, select', row ).keydown( function( e ) { … … 80 79 81 80 /** 82 * @summarySaves the inline edits on submitting the inline edit form.81 * Saves the inline edits on submitting the inline edit form. 83 82 */ 84 83 $( '#posts-filter input[type="submit"]' ).mousedown( function() { … … 150 149 151 150 /** 152 * @summarySaves the quick edit data.151 * Saves the quick edit data. 153 152 * 154 153 * Saves the quick edit data to the server and replaces the table row with the … … 188 187 $.post( ajaxurl, params, 189 188 /** 190 * @summary Handles the response from the server.189 * Handles the response from the server 191 190 * 192 191 * Handles the response from the server, replaces the table row with the response -
trunk/src/wp-admin/js/media.js
r42403 r42411 2 2 3 3 /** 4 * @summary Creates a dialog containing posts that can have a particular media attached to it. 4 * Creates a dialog containing posts that can have a particular media attached 5 * to it. 5 6 * 6 7 * @since 2.7.0 … … 15 16 findPosts = { 16 17 /** 17 * @summaryOpens a dialog to attach media to a post.18 * Opens a dialog to attach media to a post. 18 19 * 19 20 * Adds an overlay prior to retrieving a list of posts to attach the media to. … … 59 60 60 61 /** 61 * @summaryClears the found posts lists before hiding the attach media dialog.62 * Clears the found posts lists before hiding the attach media dialog. 62 63 * 63 64 * @since 2.7.0 … … 74 75 75 76 /** 76 * @summary Binds a click event listener to the overlay which closes the attach media dialog. 77 * Binds a click event listener to the overlay which closes the attach media 78 * dialog. 77 79 * 78 80 * @since 3.5.0 … … 89 91 90 92 /** 91 * @summary Retrieves and displays posts based on the search term. 92 * 93 * Sends a post request to the admin_ajax.php, requesting posts based on the search term provided by the user. 94 * Defaults to all posts if no search term is provided. 93 * Retrieves and displays posts based on the search term. 94 * 95 * Sends a post request to the admin_ajax.php, requesting posts based on the 96 * search term provided by the user. Defaults to all posts if no search term is 97 * provided. 95 98 * 96 99 * @since 2.7.0 … … 111 114 112 115 /** 113 * Send a POST request to admin_ajax.php, hide the spinner and replace the list of posts with the response data.114 * If an error occurs, display it.116 * Send a POST request to admin_ajax.php, hide the spinner and replace the list 117 * of posts with the response data. If an error occurs, display it. 115 118 */ 116 119 $.ajax( ajaxurl, { … … 133 136 134 137 /** 135 * @summary Initializes the file once the DOM is fully loaded and attaches events to the various form elements. 138 * Initializes the file once the DOM is fully loaded and attaches events to the 139 * various form elements. 136 140 * 137 141 * @returns {void} … … 193 197 194 198 /** 195 * @summaryEnables clicking on the entire table row.199 * Enables clicking on the entire table row. 196 200 * 197 201 * @returns {void} -
trunk/src/wp-admin/js/post.js
r42403 r42411 3 3 4 4 /** 5 * Contains all dynamic functionality needed on post and term pages. 6 * 7 * @file Control page and term functionality. 5 * @file Contains all dynamic functionality needed on post and term pages. 8 6 */ 9 7 … … 935 933 936 934 /** 937 * Handle the editing of the post_name. Create the required HTML elements and update the changes via AJAX. 938 * 939 * @summary Permalink aka slug aka post_name editing 935 * Handle the editing of the post_name. Create the required HTML elements and 936 * update the changes via AJAX. 940 937 * 941 938 * @global … … 1042 1039 1043 1040 /** 1044 * Add screen reader text to the title prompt when needed. 1045 * 1046 * @summary Title screen reader text handler. 1041 * Adds screen reader text to the title prompt when needed. 1047 1042 * 1048 1043 * @param {string} id Optional. HTML ID to add the screen reader helper text to. -
trunk/src/wp-admin/js/postbox.js
r42403 r42411 2 2 * Contains the postboxes logic, opening and closing postboxes, reordering and saving 3 3 * the state and ordering to the database. 4 *5 * @summary Contains postboxes logic6 4 * 7 5 * @since 2.5.0 … … 29 27 30 28 /** 31 * @summaryHandles a click on either the postbox heading or the postbox open/close icon.29 * Handles a click on either the postbox heading or the postbox open/close icon. 32 30 * 33 31 * Opens or closes the postbox. Expects `this` to equal the clicked element. … … 77 75 78 76 /** 79 * @summaryFires when a postbox has been opened or closed.77 * Fires when a postbox has been opened or closed. 80 78 * 81 79 * Contains a jQuery object with the relevant postbox element. … … 118 116 119 117 /** 120 * @summaryHides a postbox.118 * Hides a postbox. 121 119 * 122 120 * Event handler for the postbox dismiss button. After clicking the button … … 134 132 135 133 /** 136 * @summaryHides the postbox element134 * Hides the postbox element 137 135 * 138 136 * Event handler for the screen options checkboxes. When a checkbox is … … 174 172 175 173 /** 176 * @summaryChanges the amount of columns based on the layout preferences.174 * Changes the amount of columns based on the layout preferences. 177 175 * 178 176 * @since 2.8.0 … … 191 189 192 190 /** 193 * @summaryInitializes all the postboxes, mainly their sortable behaviour.191 * Initializes all the postboxes, mainly their sortable behaviour. 194 192 * 195 193 * @since 2.7.0 … … 270 268 271 269 /** 272 * @summarySaves the state of the postboxes to the server.273 * 274 * Saves the state of the postboxes to the server. It sends two lists, one with275 * all the closed postboxes, one with all thehidden postboxes.270 * Saves the state of the postboxes to the server. 271 * 272 * It sends two lists, one with all the closed postboxes, one with all the 273 * hidden postboxes. 276 274 * 277 275 * @since 2.7.0 … … 302 300 303 301 /** 304 * @summary Saves the order of the postboxes to the server. 305 * 306 * Saves the order of the postboxes to the server. Sends a list of all postboxes 307 * inside a sortable area to the server. 302 * Saves the order of the postboxes to the server. 303 * 304 * Sends a list of all postboxes inside a sortable area to the server. 308 305 * 309 306 * @since 2.8.0 … … 331 328 332 329 /** 333 * @summaryMarks empty postbox areas.330 * Marks empty postbox areas. 334 331 * 335 332 * Adds a message to empty sortable areas on the dashboard page. Also adds a … … 367 364 368 365 /** 369 * @summaryChanges the amount of columns on the post edit page.366 * Changes the amount of columns on the post edit page. 370 367 * 371 368 * @since 3.3.0 … … 396 393 397 394 /** 398 * @summary Changes the amount of columns the postboxes are in based on the399 * currentorientation of the browser.395 * Changes the amount of columns the postboxes are in based on the current 396 * orientation of the browser. 400 397 * 401 398 * @since 3.3.0 -
trunk/src/wp-admin/js/tags.js
r41311 r42411 1 1 /* global ajaxurl, wpAjax, tagsl10n, showNotice, validateForm */ 2 2 /** 3 * Contains logic for both adding and deleting tags. For deleting tags it makes a request 4 * to the server to delete the tag. For adding tags it makes a request to the server to 5 * add the tag. 3 * Contains logic for deleting and adding tags. 6 4 * 7 * @summary Contains logic for deleting and adding tags 5 * For deleting tags it makes a request to the server to delete the tag. 6 * For adding tags it makes a request to the server to add the tag. 8 7 */ 9 8 … … 11 10 12 11 /** 13 * @summaryAdds an event handler to the delete term link on the term overview page.12 * Adds an event handler to the delete term link on the term overview page. 14 13 * 15 * Adds an event handler to the delete term link on the term overview page.16 14 * Cancels default event handling and event bubbling. 17 15 * … … 30 28 31 29 /** 32 * @summary Makes a request to the server to delete the term that33 * corresponds to thedelete term button.30 * Makes a request to the server to delete the term that corresponds to the 31 * delete term button. 34 32 * 35 33 * @param {string} r The response from the server. … … 43 41 44 42 /** 45 * @summary Remove the term from the parent box and the tag cloud43 * Removes the term from the parent box and the tag cloud. 46 44 * 47 45 * `data.match(/tag_ID=(\d+)/)[1]` matches the term id from the data variable. … … 88 86 89 87 /** 90 * @summary Adds an event handler tothe form submit on the term overview page.88 * Adds an event handler to the form submit on the term overview page. 91 89 * 92 90 * Cancels default event handling and event bubbling. -
trunk/src/wp-admin/js/word-count.js
r39739 r42411 1 1 /** 2 * Word or character counting functionality. Count words or characters in a provided text string. 3 * 4 * @summary Count words or characters in a text. 2 * Word or character counting functionality. Count words or characters in a 3 * provided text string. 5 4 * 6 5 * @namespace wp.utils … … 144 143 * Counts the number of words (or other specified type) in the specified text. 145 144 * 146 * @summary Count the number of elements in a text.147 *148 145 * @since 2.6.0 149 146 * @memberof wp.utils.wordcounter -
trunk/src/wp-content/themes/twentyfifteen/js/functions.js
r36999 r42411 78 78 79 79 /** 80 * @summary Add or remove ARIA attributes. 80 * Add or remove ARIA attributes. 81 * 81 82 * Uses jQuery's width() function to determine the size of the window and add 82 83 * the default ARIA attributes for the menu toggle if it's visible. -
trunk/src/wp-content/themes/twentyfourteen/js/functions.js
r39226 r42411 123 123 124 124 /** 125 * @summary Add or remove ARIA attributes. 125 * Add or remove ARIA attributes. 126 * 126 127 * Uses jQuery's width() function to determine the size of the window and add 127 128 * the default ARIA attributes for the menu toggle if it's visible. -
trunk/src/wp-content/themes/twentythirteen/js/functions.js
r38083 r42411 76 76 77 77 /** 78 * @summary Add or remove ARIA attributes. 78 * Add or remove ARIA attributes. 79 * 79 80 * Uses jQuery's width() function to determine the size of the window and add 80 81 * the default ARIA attributes for the menu toggle if it's visible. 82 * 81 83 * @since Twenty Thirteen 1.5 82 84 */ -
trunk/src/wp-includes/js/autosave.js
r41351 r42411 6 6 7 7 /** 8 * @summaryAdds autosave to the window object on dom ready.8 * Adds autosave to the window object on dom ready. 9 9 * 10 10 * @since 3.9.0 … … 16 16 ( function( $, window ) { 17 17 /** 18 * @summaryAuto saves the post.18 * Auto saves the post. 19 19 * 20 20 * @since 3.9.0 … … 37 37 38 38 /** 39 * @summaryReturns the data saved in both local and remote autosave.39 * Returns the data saved in both local and remote autosave. 40 40 * 41 41 * @since 3.9.0 … … 100 100 101 101 /** 102 * @summary Concatenates the title, content and excerpt. 103 * 104 * This is used to track changes when auto-saving. 102 * Concatenates the title, content and excerpt. This is used to track changes 103 * when auto-saving. 105 104 * 106 105 * @since 3.9.0 … … 119 118 120 119 /** 121 * @summaryDisables save buttons.120 * Disables save buttons. 122 121 * 123 122 * @since 3.9.0 … … 133 132 134 133 /** 135 * @summaryEnables save buttons.134 * Enables save buttons. 136 135 * 137 136 * @since 3.9.0 … … 144 143 145 144 /** 146 * @summaryGets the content editor.145 * Gets the content editor. 147 146 * 148 147 * @since 4.6.0 … … 156 155 157 156 /** 158 * @summaryAutosave in localStorage.157 * Autosave in localStorage. 159 158 * 160 159 * @since 3.9.0 … … 177 176 178 177 /** 179 * @summaryChecks if the browser supports sessionStorage and it's not disabled.178 * Checks if the browser supports sessionStorage and it's not disabled. 180 179 * 181 180 * @since 3.9.0 … … 198 197 199 198 /** 200 * @summaryInitializes the local storage.199 * Initializes the local storage. 201 200 * 202 201 * @since 3.9.0 … … 222 221 223 222 /** 224 * @summary Sets the storage for this blog. 225 * 226 * Confirms that the data was saved successfully. 223 * Sets the storage for this blog. Confirms that the data was saved 224 * successfully. 227 225 * 228 226 * @since 3.9.0 … … 243 241 244 242 /** 245 * @summaryGets the saved post data for the current post.243 * Gets the saved post data for the current post. 246 244 * 247 245 * @since 3.9.0 … … 260 258 261 259 /** 262 * @summarySets (save or delete) post data in the storage.260 * Sets (save or delete) post data in the storage. 263 261 * 264 262 * If stored_data evaluates to 'false' the storage key for the current post will be removed. … … 289 287 290 288 /** 291 * @summarySets isSuspended to true.289 * Sets isSuspended to true. 292 290 * 293 291 * @since 3.9.0 … … 300 298 301 299 /** 302 * @summarySets isSuspended to false.300 * Sets isSuspended to false. 303 301 * 304 302 * @since 3.9.0 … … 311 309 312 310 /** 313 * @summarySaves post data for the current post.311 * Saves post data for the current post. 314 312 * 315 313 * Runs on a 15 sec. interval, saves when there are differences in the post title or content. … … 360 358 361 359 /** 362 * @summaryInitializes the auto save function.360 * Initializes the auto save function. 363 361 * 364 362 * Checks whether the editor is active or not to use the editor events … … 420 418 421 419 /** 422 * @summary Compares 2 strings. 423 * 424 * Removes whitespaces in the strings before comparing them. 420 * Compares 2 strings. Removes whitespaces in the strings before comparing them. 425 421 * 426 422 * @since 3.9.0 … … 439 435 440 436 /** 441 * @summary Checks if the saved data for the current post (if any) is different442 * than theloaded post data on the screen.437 * Checks if the saved data for the current post (if any) is different than the 438 * loaded post data on the screen. 443 439 * 444 440 * Shows a standard message letting the user restore the post data if different. … … 508 504 509 505 /** 510 * @summaryRestores the current title, content and excerpt from postData.506 * Restores the current title, content and excerpt from postData. 511 507 * 512 508 * @since 3.9.0 … … 576 572 577 573 /** 578 * @summaryAuto saves the post on the server.574 * Auto saves the post on the server. 579 575 * 580 576 * @since 3.9.0 … … 597 593 598 594 /** 599 * @summaryBlocks saving for the next 10 seconds.595 * Blocks saving for the next 10 seconds. 600 596 * 601 597 * @since 3.9.0 … … 613 609 614 610 /** 615 * @summarySets isSuspended to true.611 * Sets isSuspended to true. 616 612 * 617 613 * @since 3.9.0 … … 624 620 625 621 /** 626 * @summarySets isSuspended to false.622 * Sets isSuspended to false. 627 623 * 628 624 * @since 3.9.0 … … 635 631 636 632 /** 637 * @summaryTriggers the autosave with the post data.633 * Triggers the autosave with the post data. 638 634 * 639 635 * @since 3.9.0 … … 659 655 660 656 /** 661 * @summarySaves immediately.657 * Saves immediately. 662 658 * 663 659 * Resets the timing and tells heartbeat to connect now. … … 673 669 674 670 /** 675 * @summaryChecks if the post content in the textarea has changed since page load.671 * Checks if the post content in the textarea has changed since page load. 676 672 * 677 673 * This also happens when TinyMCE is active and editor.save() is triggered by … … 687 683 688 684 /** 689 * @summaryChecks if the post can be saved or not.685 * Checks if the post can be saved or not. 690 686 * 691 687 * If the post hasn't changed or it cannot be updated, … … 734 730 735 731 /** 736 * @summarySets the next run, based on the autosave interval.732 * Sets the next run, based on the autosave interval. 737 733 * 738 734 * @private … … 747 743 748 744 /** 749 * @summarySets the autosaveData on the autosave heartbeat.745 * Sets the autosaveData on the autosave heartbeat. 750 746 * 751 747 * @since 3.9.0 … … 761 757 762 758 /** 763 * @summary Triggers the autosave of the post with the autosave data764 * on the autosaveheartbeat.759 * Triggers the autosave of the post with the autosave data on the autosave 760 * heartbeat. 765 761 * 766 762 * @since 3.9.0 … … 773 769 } 774 770 /** 775 * @summaryDisables buttons and throws a notice when the connection is lost.771 * Disables buttons and throws a notice when the connection is lost. 776 772 * 777 773 * @since 3.9.0 … … 794 790 795 791 /** 796 * @summaryEnables buttons when the connection is restored.792 * Enables buttons when the connection is restored. 797 793 * 798 794 * @since 3.9.0 … … 817 813 818 814 /** 819 * @summarySets the autosave time out.815 * Sets the autosave time out. 820 816 * 821 817 * Wait for TinyMCE to initialize plus 1 second. for any external css to finish loading, -
trunk/src/wp-includes/js/comment-reply.js
r42403 r42411 1 1 /** 2 * @summaryHandles the addition of the comment form.2 * Handles the addition of the comment form. 3 3 * 4 4 * @since 2.7.0 -
trunk/src/wp-includes/js/media-audiovideo.js
r41781 r42411 74 74 /** 75 75 * 76 * @summaryDefines the wp.media.mixin object.76 * Defines the wp.media.mixin object. 77 77 * 78 78 * @mixin … … 84 84 85 85 /** 86 * @summaryPauses and removes all players.86 * Pauses and removes all players. 87 87 * 88 88 * @since 4.2.0 … … 102 102 103 103 /** 104 * @summaryRemoves the player.104 * Removes the player. 105 105 * 106 106 * Override the MediaElement method for removing a player. … … 148 148 /** 149 149 * 150 * @summaryRemoves and resets all players.150 * Removes and resets all players. 151 151 * 152 152 * Allows any class that has set 'player' to a MediaElementPlayer … … 169 169 170 170 /** 171 * @summaryShortcode modeling for playlists.171 * Shortcode modeling for playlists. 172 172 * 173 173 * @since 4.2.0 … … 188 188 189 189 /** 190 * @summaryShortcode modeling for audio.190 * Shortcode modeling for audio. 191 191 * 192 192 * `edit()` prepares the shortcode for the media modal. … … 210 210 211 211 /** 212 * @summaryInstantiates a new media object with the next matching shortcode.212 * Instantiates a new media object with the next matching shortcode. 213 213 * 214 214 * @since 4.2.0 … … 230 230 231 231 /** 232 * @summaryGenerates an audio shortcode.232 * Generates an audio shortcode. 233 233 * 234 234 * @since 4.2.0 … … 260 260 261 261 /** 262 * @summaryShortcode modeling for video.262 * Shortcode modeling for video. 263 263 * 264 264 * `edit()` prepares the shortcode for the media modal. … … 285 285 286 286 /** 287 * @summaryInstantiates a new media object with the next matching shortcode.287 * Instantiates a new media object with the next matching shortcode. 288 288 * 289 289 * @since 4.2.0 … … 310 310 311 311 /** 312 * @summaryGenerates an video shortcode.312 * Generates an video shortcode. 313 313 * 314 314 * @since 4.2.0 -
trunk/src/wp-includes/js/media-views.js
r42410 r42411 2337 2337 2338 2338 /** 2339 * @summary Opens the crop image window.2340 *2341 2339 * Shows the crop image window when called from the Add new image button. 2342 2340 * … … 2352 2350 2353 2351 /** 2354 * @summaryChanges the state of the toolbar window to browse mode.2352 * Changes the state of the toolbar window to browse mode. 2355 2353 * 2356 2354 * @since 4.2.0 … … 2363 2361 2364 2362 /** 2365 * @summaryCreates the crop image window.2363 * Creates the crop image window. 2366 2364 * 2367 2365 * Initialized when clicking on the Select and Crop button. … … 2384 2382 2385 2383 /** 2386 * @summaryRemoves the image selection and closes the cropping window.2384 * Removes the image selection and closes the cropping window. 2387 2385 * 2388 2386 * @since 4.2.0 … … 2398 2396 2399 2397 /** 2400 * @summaryChecks if cropping can be skipped and creates crop toolbar accordingly.2398 * Checks if cropping can be skipped and creates crop toolbar accordingly. 2401 2399 * 2402 2400 * @since 4.2.0 … … 2460 2458 2461 2459 /** 2462 * @summaryCreates an object with the image attachment and crop properties.2460 * Creates an object with the image attachment and crop properties. 2463 2461 * 2464 2462 * @since 4.2.0 -
trunk/src/wp-includes/js/media/audiovideo.manifest.js
r41781 r42411 5 5 /** 6 6 * 7 * @summaryDefines the wp.media.mixin object.7 * Defines the wp.media.mixin object. 8 8 * 9 9 * @mixin … … 15 15 16 16 /** 17 * @summaryPauses and removes all players.17 * Pauses and removes all players. 18 18 * 19 19 * @since 4.2.0 … … 33 33 34 34 /** 35 * @summaryRemoves the player.35 * Removes the player. 36 36 * 37 37 * Override the MediaElement method for removing a player. … … 79 79 /** 80 80 * 81 * @summaryRemoves and resets all players.81 * Removes and resets all players. 82 82 * 83 83 * Allows any class that has set 'player' to a MediaElementPlayer … … 100 100 101 101 /** 102 * @summaryShortcode modeling for playlists.102 * Shortcode modeling for playlists. 103 103 * 104 104 * @since 4.2.0 … … 119 119 120 120 /** 121 * @summaryShortcode modeling for audio.121 * Shortcode modeling for audio. 122 122 * 123 123 * `edit()` prepares the shortcode for the media modal. … … 141 141 142 142 /** 143 * @summaryInstantiates a new media object with the next matching shortcode.143 * Instantiates a new media object with the next matching shortcode. 144 144 * 145 145 * @since 4.2.0 … … 161 161 162 162 /** 163 * @summaryGenerates an audio shortcode.163 * Generates an audio shortcode. 164 164 * 165 165 * @since 4.2.0 … … 191 191 192 192 /** 193 * @summaryShortcode modeling for video.193 * Shortcode modeling for video. 194 194 * 195 195 * `edit()` prepares the shortcode for the media modal. … … 216 216 217 217 /** 218 * @summaryInstantiates a new media object with the next matching shortcode.218 * Instantiates a new media object with the next matching shortcode. 219 219 * 220 220 * @since 4.2.0 … … 241 241 242 242 /** 243 * @summaryGenerates an video shortcode.243 * Generates an video shortcode. 244 244 * 245 245 * @since 4.2.0 -
trunk/src/wp-includes/js/media/controllers/cropper.js
r42352 r42411 28 28 29 29 /** 30 * @summary Opens the crop image window.31 *32 30 * Shows the crop image window when called from the Add new image button. 33 31 * … … 43 41 44 42 /** 45 * @summaryChanges the state of the toolbar window to browse mode.43 * Changes the state of the toolbar window to browse mode. 46 44 * 47 45 * @since 4.2.0 … … 54 52 55 53 /** 56 * @summaryCreates the crop image window.54 * Creates the crop image window. 57 55 * 58 56 * Initialized when clicking on the Select and Crop button. … … 75 73 76 74 /** 77 * @summaryRemoves the image selection and closes the cropping window.75 * Removes the image selection and closes the cropping window. 78 76 * 79 77 * @since 4.2.0 … … 89 87 90 88 /** 91 * @summaryChecks if cropping can be skipped and creates crop toolbar accordingly.89 * Checks if cropping can be skipped and creates crop toolbar accordingly. 92 90 * 93 91 * @since 4.2.0 … … 151 149 152 150 /** 153 * @summaryCreates an object with the image attachment and crop properties.151 * Creates an object with the image attachment and crop properties. 154 152 * 155 153 * @since 4.2.0
Note: See TracChangeset
for help on using the changeset viewer.