Changeset 12786
- Timestamp:
- 08/01/2023 10:44:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php
r12731 r12786 1105 1105 document.addEventListener('DOMContentLoaded', function () { 1106 1106 // Remove the 'Submit for Review' button. 1107 document.querySelector(" #publishing-action").remove();1107 document.querySelector("body.post-type-photo #publishing-action")?.remove(); 1108 1108 1109 1109 // Remove the 'Preview' button. 1110 document.querySelector(" #preview-action").remove();1110 document.querySelector("body.post-type-photo #preview-action")?.remove(); 1111 1111 1112 1112 // Add rejected post status to status display. 1113 document.querySelector(" .misc-pub-post-status #post-status-display").innerText = "{$status_label}";1113 document.querySelector("body.post-type-photo .misc-pub-post-status #post-status-display").innerText = "{$status_label}"; 1114 1114 1115 1115 // Change visibility display to indicate it is hidden. 1116 document.querySelector(" .misc-pub-visibility #post-visibility-display").innerText = "{$visibility_label}";1116 document.querySelector("body.post-type-photo .misc-pub-visibility #post-visibility-display").innerText = "{$visibility_label}"; 1117 1117 } ); 1118 1118 </script>
Note: See TracChangeset
for help on using the changeset viewer.