File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -493,7 +493,11 @@ public static function enqueueJobs( ?int $post_id = null ): void {
493493 }
494494
495495 $ immediate_mode = intval ( Options::getValue ( 'processQueueImmediately ' ) );
496- if ( $ immediate_mode === 1 ) {
496+ if ( ( defined ( 'STATIC_DEPLOY_WP_ORG_MODE ' ) && STATIC_DEPLOY_WP_ORG_MODE ) ) {
497+ if ( $ immediate_mode === 1 ) {
498+ self ::processQueueAdminPost ();
499+ }
500+ } elseif ( $ immediate_mode === 1 ) {
497501 self ::processQueueAdminPost ();
498502 } elseif ( $ immediate_mode === 2 ) {
499503 shell_exec ( 'wp static-deploy process_queue > /dev/null 2>&1 & ' );
Original file line number Diff line number Diff line change 159159 <option
160160 <?php echo (int ) $ options ['processQueueImmediately ' ]->value === 0 ? 'selected ' : '' ; ?>
161161 value="0">disabled</option>
162+ <?php
163+ if ( defined ( 'STATIC_DEPLOY_WP_ORG_MODE ' ) && STATIC_DEPLOY_WP_ORG_MODE ) :
164+ ?>
165+ <option
166+ <?php echo (int ) $ options ['processQueueImmediately ' ]->value === 1 ? 'selected ' : '' ; ?>
167+ value="1">enabled</option>
168+ <?php else : ?>
162169 <option
163170 <?php echo (int ) $ options ['processQueueImmediately ' ]->value === 1 ? 'selected ' : '' ; ?>
164171 value="1">Using wp-admin.php</option>
165172 <option
166173 <?php echo (int ) $ options ['processQueueImmediately ' ]->value === 2 ? 'selected ' : '' ; ?>
167174 value="2">Using WordPress CLI</option>
175+ <?php endif ; ?>
168176 </select>
169177 </td>
170178 </tr>
You can’t perform that action at this time.
0 commit comments