function upgradeSectionOpenings() {
		$_option = $this->getSlug();
		$options = get_option( 'pressbooks_theme_options_' . $_option, $this->defaults );

		// Get more specific
		if ( ! isset( $options['pdf_blankpages'] ) || 1 === absint( $options['pdf_blankpages'] ) || 'include' === $options['pdf_blankpages'] ) {
			$options['pdf_sectionopenings'] = 'openauto';
		} elseif ( 2 === absint( $options['pdf_blankpages'] ) || 'remove' === $options['pdf_blankpages'] ) {
			$options['pdf_sectionopenings'] = 'remove';
		}
		unset( $options['pdf_blankpages'] );

		update_option( 'pressbooks_theme_options_' . $_option, $options );
	}
function upgradeSectionOpenings() {
		$_option = $this->getSlug();
		$options = get_option( 'pressbooks_theme_options_' . $_option, $this->defaults );

		// Get more specific
		if ( ! isset( $options['pdf_blankpages'] ) || 1 === absint( $options['pdf_blankpages'] ) || 'include' === $options['pdf_blankpages'] ) {
			$options['pdf_sectionopenings'] = 'openauto';
		} elseif ( 2 === absint( $options['pdf_blankpages'] ) || 'remove' === $options['pdf_blankpages'] ) {
			$options['pdf_sectionopenings'] = 'remove';
		}
		unset( $options['pdf_blankpages'] );

		update_option( 'pressbooks_theme_options_' . $_option, $options );
	}
function upgradeSectionOpenings ( ) { $ _option = $ this -> getSlug ( ) ; $ options = get_option ( 'pressbooks_theme_options_' . $ _option , $ this -> defaults ) ; // Get more specific if ( ! isset ( $ options [ 'pdf_blankpages' ] ) || 1 === absint ( $ options [ 'pdf_blankpages' ] ) || 'include' === $ options [ 'pdf_blankpages' ] ) { $ options [ 'pdf_sectionopenings' ] = 'openauto' ; } elseif ( 2 === absint ( $ options [ 'pdf_blankpages' ] ) || 'remove' === $ options [ 'pdf_blankpages' ] ) { $ options [ 'pdf_sectionopenings' ] = 'remove' ; } unset ( $ options [ 'pdf_blankpages' ] ) ; update_option ( 'pressbooks_theme_options_' . $ _option , $ options ) ; }
Replace pdf_blankpages option with pdf_sectionopenings option.
Replace pdf_blankpages option with pdf_sectionopenings option .