Changeset 55882
- Timestamp:
- 06/05/2023 09:33:49 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-image-header.php
r55881 r55882 67 67 68 68 /** 69 * Set up the hooks for the Custom Header admin page.69 * Sets up the hooks for the Custom Header admin page. 70 70 * 71 71 * @since 2.1.0 … … 147 147 148 148 /** 149 * Get the current step.149 * Gets the current step. 150 150 * 151 151 * @since 2.6.0 … … 170 170 171 171 /** 172 * Set up the enqueue for the JavaScript files.172 * Sets up the enqueue for the JavaScript files. 173 173 * 174 174 * @since 2.1.0 … … 189 189 190 190 /** 191 * Set up the enqueue for the CSS files191 * Sets up the enqueue for the CSS files. 192 192 * 193 193 * @since 2.7.0 … … 204 204 205 205 /** 206 * Execute custom header modification.206 * Executes custom header modification. 207 207 * 208 208 * @since 2.6.0 … … 263 263 264 264 /** 265 * Process the default headers265 * Processes the default headers. 266 266 * 267 267 * @since 3.0.0 … … 300 300 301 301 /** 302 * Display UI for selecting one of several default headers.303 * 304 * Show the random image option if this theme has multiple header images.302 * Displays UI for selecting one of several default headers. 303 * 304 * Shows the random image option if this theme has multiple header images. 305 305 * Random image option is on by default if no header has been set. 306 306 * … … 347 347 348 348 /** 349 * Execute JavaScript depending on step.349 * Executes JavaScript depending on step. 350 350 * 351 351 * @since 2.1.0 … … 362 362 363 363 /** 364 * Display JavaScript based on Step 1 and 3.364 * Displays JavaScript based on Step 1 and 3. 365 365 * 366 366 * @since 2.6.0 … … 423 423 424 424 /** 425 * Display JavaScript based on Step 2.425 * Displays JavaScript based on Step 2. 426 426 * 427 427 * @since 2.6.0 … … 499 499 500 500 /** 501 * Display first step of custom header image page.501 * Displays first step of custom header image page. 502 502 * 503 503 * @since 2.1.0 … … 813 813 814 814 /** 815 * Display second step of custom header image page.815 * Displays second step of custom header image page. 816 816 * 817 817 * @since 2.1.0 … … 956 956 957 957 /** 958 * Upload the file to be cropped in the second step.958 * Uploads the file to be cropped in the second step. 959 959 * 960 960 * @since 3.4.0 … … 997 997 998 998 /** 999 * Display third step of custom header image page.999 * Displays third step of custom header image page. 1000 1000 * 1001 1001 * @since 2.1.0 … … 1093 1093 1094 1094 /** 1095 * Display last step of custom header image page.1095 * Displays last step of custom header image page. 1096 1096 * 1097 1097 * @since 2.1.0 … … 1103 1103 1104 1104 /** 1105 * Display the page based on the current step.1105 * Displays the page based on the current step. 1106 1106 * 1107 1107 * @since 2.1.0 … … 1148 1148 1149 1149 /** 1150 * Choose a header image, selected from existing uploaded and default headers,1151 * or provide an array of uploaded header data (either new, or from media library).1150 * Chooses a header image, selected from existing uploaded and default headers, 1151 * or provides an array of uploaded header data (either new, or from media library). 1152 1152 * 1153 1153 * @since 3.4.0 1154 1154 * 1155 1155 * @param mixed $choice Which header image to select. Allows for values of 'random-default-image', 1156 * for randomly cycling among the default images; 'random-uploaded-image', for randomly cycling 1157 * among the uploaded images; the key of a default image registered for that theme; and 1158 * the key of an image uploaded for that theme (the attachment ID of the image). 1159 * Or an array of arguments: attachment_id, url, width, height. All are required. 1156 * for randomly cycling among the default images; 'random-uploaded-image', 1157 * for randomly cycling among the uploaded images; the key of a default image 1158 * registered for that theme; and the key of an image uploaded for that theme 1159 * (the attachment ID of the image). Or an array of arguments: attachment_id, 1160 * url, width, height. All are required. 1160 1161 */ 1161 1162 final public function set_header_image( $choice ) { … … 1210 1211 1211 1212 /** 1212 * Remove a header image.1213 * Removes a header image. 1213 1214 * 1214 1215 * @since 3.4.0 … … 1219 1220 1220 1221 /** 1221 * Reset a header image to the default image for the theme.1222 * Resets a header image to the default image for the theme. 1222 1223 * 1223 1224 * This method does not do anything if the theme does not have a default header image. … … 1249 1250 1250 1251 /** 1251 * Calculate width and height based on what the currently selected theme supports.1252 * Calculates width and height based on what the currently selected theme supports. 1252 1253 * 1253 1254 * @since 3.9.0 … … 1300 1301 1301 1302 /** 1302 * Create an attachment 'object'.1303 * Creates an attachment 'object'. 1303 1304 * 1304 1305 * @since 3.9.0 … … 1329 1330 1330 1331 /** 1331 * Insert an attachment and its metadata.1332 * Inserts an attachment and its metadata. 1332 1333 * 1333 1334 * @since 3.9.0 … … 1579 1580 1580 1581 /** 1581 * Get the ID of a previous crop from the same base image.1582 * Gets the ID of a previous crop from the same base image. 1582 1583 * 1583 1584 * @since 4.9.0
Note: See TracChangeset
for help on using the changeset viewer.