get_data( $handle, 'data' ); if ( $data ) $script = $data . "\n" . $script; $wp_scripts->add_data( $handle, 'data', $script ); } /** * Allow an author to disable posting to Timeline by default. * * @since 1.2 * * @param WP_User $wordpress_user WordPress user object for the current profile. * @return void */ public static function personal_options( $wordpress_user ) { if ( ! ( $wordpress_user && isset( $wordpress_user->ID ) ) ) return; if ( ! class_exists( 'Facebook_User' ) ) require_once( dirname( dirname(__FILE__) ) . '/facebook-user.php' ); if ( ! Facebook_User::can_publish_to_facebook( $wordpress_user->ID, false /* do not check for the presence of publish override in this option field */ ) ) return; echo '
| ' . esc_html( _x( 'Connected Profile', 'Connected Facebook Profile', 'facebook' ) ) . ' | '; $section .= '' . esc_html( $facebook_user_data['fb_uid'] ) . ' '; if ( isset( $facebook_user_data['activation_time'] ) ) $section .= '' . sprintf( esc_html( __( 'Associated on %s', 'facebook' ) ), '' ) . ' ' . ' '; $section .= ' |
|---|---|
| ' . esc_html( __( 'Permissions', 'facebook' ) ) . ' | ';
if ( empty( $permissions ) ) {
$section .= __( 'None', 'facebook' );
} else {
$section .= '
|
| ' . esc_html( _x( 'Get started', 'Begin the process', 'facebook' ) ) . ' | '; $section .= '