WordPress.org

Make WordPress Core

Opened 19 months ago

Closed 18 months ago

Last modified 18 months ago

#22998 closed feature request (wontfix)

Add Open Graph protocol support

Reported by: lukbarros Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:

Description

Whereas the wordpress software is content management and this must be compatible for shares on social networks that has adopted fecebook pulled by the open graph protocol (http://ogp.me/).

I feel in my projects this lack, before doing this manually in my header.php (in my head at the session theme html document) and ended up finding some third party plugins that try to solve the problem in different ways however implementing the outline of issues as: "What og: image page view?".

Believing in the importance of the protocol, and I believe that many front-ends will agree with the importance, decides to research and implement the class wpog initially responsible for managing the data and writing the html tags ophen graph.

Not all tags contemplated, but the intention here is to be able to show the architecture of the class as well as the base implementation of which will derive the other to meet all the definitions of open graph.

I urge you to download the attachment with implmentação (wordpress 3.5 + standard implementation), use, test, and we discuss the incorporation of the standard design wordpress.

Note comments documented in the code to understand it better.

To locate the changes:

1 - in wp-includes \ load.php on line 348 was added to the global function that Lavanta $ wpog.

2 - in wp-settings.php on line 75 was added to the called function explained in item 1.

3 - in wp-includes the file was added wp-og.php containing the class wpog and 2 functions to the list of functions 'template tags' for use in themes.

4 - in wp-content \ themes \ wpogTest \ header.php on line 28 demonstrate ways to use the new class wpog.

I hope feedbacks!

Attachments (1)

wpog.rar (221.2 KB) - added by lukbarros 19 months ago.

Download all attachments as: .zip

Change History (9)

lukbarros19 months ago

comment:1 markoheijnen19 months ago

  • Severity changed from major to normal
  • Version 3.5 deleted

I don't like to have this in core and I also am unsure if this should be discussed here. I rather would close it but thats me.

Also for a side note you should add a patch and not a full WordPress zip file.

comment:2 lukbarros19 months ago

Ok I am new here, I desculper Annex with full wp.

Sorry for my english too.

When not want this in the core: explain your position?

thank you

comment:3 markoheijnen19 months ago

I don't think the protocol is that important to be a core feature. I believe plugins can do it pretty well.

comment:4 lukbarros19 months ago

I believe the project intercompatibilidade mounted with wordpress, and I've done about 200, with
yet overall use of social networks is important not only more crucial to the ability to generate results,
especially when it comes to engagement and web application integration and social networks.

The case of plugins to do this is rather a correct point. As mentioned in the body of the ticket I used some other pieces and implemented
almost 200 for my various projects. The point to notice is the quality and uniformity standard non-existent.
I believe in the core, we could have that engine in where the type PDCA cycles would have to meet all protocol specifications and full compliance with the standard set.

However I can make my implementation a plugin, but I still think that this place is in the core.

thank you

comment:5 alexvorn219 months ago

This is good for themes, but it can make WordPress to be more complex ( more code, etc...)
So this is plugin territory.

comment:6 SergeyBiryukov19 months ago

  • Keywords close added

Sounds like plugin territory to me.

comment:7 rmccue18 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Agreed on plugin territory.

comment:8 ocean9018 months ago

  • Summary changed from new feture - wp open graph class but-in core to Add Open Graph protocol support
Note: See TracTickets for help on using tickets.