Forum Replies Created

Viewing 3 replies - 301 through 303 (of 303 total)
  • I have been having this problem for about a week now. I followed all the steps listed here, and confirmed the settings in the facebook application tab.

    No matter what I try I can’t change the behavior.

    In my case I noticed that changing the “YOUR Facebook Profile ID” value doesn’t change the access token. I don’t know if this is normal?

    Also, when I generate the access token I see a blank page with this information:

    Succeeded in saving Access Token ….functions.php at line 2707 function n/a (deprecated_argument_run, get_bloginfo, The home option is deprecated for the family of bloginfo() functions. Use the url option instead., 2.2) …..general-template.php at line 405 function n/a (get_bloginfo, 2.2, The home option is deprecated for the family of bloginfo() functions. Use the url option instead.) ……wpbook-lite.php at line 644 function n/a (home) …….n/a at line n/a function n/a

    I am definitely perplexed.

    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    This is what the code in my modified function looks like…

    if ( preg_match_all( '/%%ct_desc_([^%]+)?%%/u', $string, $matches, PREG_SET_ORDER ) ) {
    		global $post;
    		foreach ( $matches as $match ) {
    			$terms  = wp_get_object_terms( $post->ID, $match[ 1 ] );
    			if ( !is_wp_error($terms) ) {
    				$replace_with = empty($terms) ? '' :  get_term_field( 'description', $terms[ 0 ]->term_id, $match[ 1 ] );
    				$string = str_replace( $match[ 0 ], $replace_with , $string );
    			}
    		}
    	}
    Thread Starter Jeffrey Schutzman

    (@jeffpyebrookcom)

    Also,

    Line 129 in wpbook-lite.php changing the ‘8’ to ‘manage_options’ seems to eliminate a deprecated argument warning?

    It should look something like this:

    $wpbook_lite_plugin_page = add_options_page(‘WPBook Lite’, ‘WPBook Lite’, ‘manage_options’, basename(__FILE__), ‘wpbook_lite_subpanel’);

Viewing 3 replies - 301 through 303 (of 303 total)