Skip to content

Commit

Permalink
Do not set _filled and _featured while calling save_job_listing_data
Browse files Browse the repository at this point in the history
  • Loading branch information
fjorgemota committed Jul 22, 2024
1 parent a591591 commit 000a669
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions includes/admin/class-wp-job-manager-writepanels.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,10 +673,6 @@ public function save_post( $post_id, $post ) {
public function save_job_listing_data( $post_id, $post ) {
global $wpdb;

// These need to exist.
add_post_meta( $post_id, '_filled', 0, true );
add_post_meta( $post_id, '_featured', 0, true );

// Save fields.
foreach ( $this->job_listing_fields() as $key => $field ) {
if ( isset( $field['type'] ) && 'info' === $field['type'] ) {
Expand Down
2 changes: 1 addition & 1 deletion wp-job-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}

// Define constants.
define( 'JOB_MANAGER_VERSION', '2.3.0' );
define( 'JOB_MANAGER_VERSION', '2.3.0-dev' );
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
define( 'JOB_MANAGER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
Expand Down

0 comments on commit 000a669

Please sign in to comment.