Code Monkey home page Code Monkey logo

containers's People

Contributors

xedinunknown avatar

Stargazers

 avatar

Watchers

 avatar

containers's Issues

Fix Site Meta Container

The Problem

The SiteMeta class seems to always operate on options of the current site, regardless of site ID.

Possible Cause

It uses network functions, rather than site functions, and uses site ID in place of network ID. This made sense before, as sites were understood as belonging to a network, and so a site would be identified by a site ID and a network ID. This used to work for some small subset of cases, like where there is only one site in a multisite network.

Suggested Solution

Use functions like get_site_meta(), with the correct site ID. This will work because the way sites work is now understood much better. In this new paradigm, all sites differ by site ID, and network ID is only used to group them, which explains why you can move a site between network and relations still work. So, because a site is only identified by site ID, and does not involve network ID, it is fine to use the meta-oriented functions without any network involvement. An interface that exposes meta for a particular site will continue exposing meta for that site even if its network changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.