Skip to content

Commit

Permalink
Merge pull request #149 from JarrydLong/getoption
Browse files Browse the repository at this point in the history
Changes reference of getOption to get_option
  • Loading branch information
andrewlimaza authored Feb 14, 2024
2 parents d364037 + 0c94dc4 commit fc70be1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pmpro-member-directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,11 @@ function pmpromd_build_profile_url( $pu, $profile_url = false, $separator = fals
*/
function pmpromd_check_for_upgrade() {

if ( ! function_exists( 'pmpro_getOption' ) ) {
if ( ! function_exists( 'pmpro_init' ) ) {
return;
}

$pmpromd_db_version = pmpro_getOption("md_db_version");
$pmpromd_db_version = get_option("pmpro_md_db_version");

if( empty( $pmpromd_db_version ) || version_compare( $pmpromd_db_version, '1.2', '<' ) ) {

Expand Down
2 changes: 1 addition & 1 deletion templates/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function pmpromd_profile_shortcode($atts, $content=null, $code="")

if ( ! empty( $pu ) && $pu->ID === $current_user->ID ) {
// User viewing their own profile. Show an edit profile link if 'Member Profile Edit Page' is set or dashboard access is allowed.
if ( ! empty( pmpro_getOption( 'member_profile_edit_page_id' ) ) ) {
if ( ! empty( get_option( 'pmpro_member_profile_edit_page_id' ) ) ) {
$edit_profile_url = pmpro_url( 'member_profile_edit' );
} elseif ( ! pmpro_block_dashboard() ) {
$edit_profile_url = admin_url( 'profile.php' );
Expand Down

0 comments on commit fc70be1

Please sign in to comment.