[wp-hackers] jQuery x-editable with update_user_meta?
J.D. Grimes
jdg at codesymphony.co
Mon Oct 28 21:57:21 UTC 2013
That really doesn’t make sense. Is this code you pasted an exact copy of the code in your theme?
On Oct 28, 2013, at 5:40 PM, Gregory Lancaster <greglancaster71 at gmail.com> wrote:
> Damn that was incredibily useful, thanks man. I fixed the double headers
> but unfortunately this still wont work unless I am logged out. I found the
> culprit though, the same block of code that was an issue previously:
>
> */
> function themeblvd_redirect_admin(){
> if ( ! current_user_can( 'edit_posts' ) && (! defined('DOING_AJAX') || !
> DOING_AJAX ) ){
> wp_redirect( site_url() );
> exit;
> }
> }
> add_action( 'admin_init', 'themeblvd_redirect_admin' );
>
> commenting out that block fixed it. What do I need to add to this so I
> can still block wp-admin access but keep the ajax call working? Add a
> jQuery exception as well?
>
>
> On Mon, Oct 28, 2013 at 2:26 PM, J.D. Grimes <jdg at codesymphony.co> wrote:
>
>> You could add a debug_print_backtrace() in head.php. That will print the
>> stack for each inclusion.
>>
>> -J.D.
>>
>> On Oct 28, 2013, at 5:20 PM, BenderisGreat <greglancaster71 at gmail.com>
>> wrote:
>>
>>> I think I see the issue, when I am logged in the head.php gets loaded
>> twice.
>>> Not sure why exactly though. Is there a way to show all files being
>> loaded
>>> in sequence as they are fired?
>>>
>>>
>>>
>>> --
>>> View this message in context:
>> http://wordpress-hackers.1065353.n5.nabble.com/jQuery-x-editable-with-update-user-meta-tp42641p42650.html
>>> Sent from the Wordpress Hackers mailing list archive at Nabble.com.
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list